forked from google/skia
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reland: [bazel] Housekeeper-PerCommit-CheckGeneratedFiles: Add "go ge…
…nerate", Gazelle and Buildifier steps. This CL relands https://skia-review.googlesource.com/c/skia/+/778517. It turns out that defining "buildifier" in //BUILD.bazel breaks some tasks, such as BazelTest-external_client-png_decoder-default-linux_x64. This CL fixes the breakage by moving its definition to //bazel/BUILD.bazel. Bug: b/40045301 Change-Id: Ib22071cb897de62c834962f68ca2f9646fbf4c75 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/778609 Auto-Submit: Leandro Lovisolo <[email protected]> Commit-Queue: Kevin Lubick <[email protected]> Reviewed-by: Kevin Lubick <[email protected]>
- Loading branch information
1 parent
d0e4a53
commit 42444c0
Showing
14 changed files
with
185 additions
and
1,444 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,28 @@ | ||
load("@com_github_bazelbuild_buildtools//buildifier:def.bzl", "buildifier") | ||
load("//bazel:skia_rules.bzl", "exports_files_legacy") | ||
|
||
licenses(["notice"]) | ||
|
||
exports_files_legacy() | ||
|
||
# Sample usage: "bazel run //bazel:buildifier". | ||
buildifier( | ||
name = "buildifier", | ||
exclude_patterns = [ | ||
"./bazel/rbe/gce_linux/*", | ||
"./modules/*", | ||
"./node_modules/*", | ||
"./**/node_modules/*", | ||
"./third_party/externals/*", | ||
], | ||
lint_mode = "fix", | ||
lint_warnings = [ | ||
# Prevents https://github.com/bazelbuild/buildtools/blob/master/WARNINGS.md#native-android. | ||
"-native-android", | ||
# Prevents https://github.com/bazelbuild/buildtools/blob/master/WARNINGS.md#native-cc. | ||
"-native-cc", | ||
# Prevents https://github.com/bazelbuild/buildtools/blob/master/WARNINGS.md#native-py. | ||
"-native-py", | ||
], | ||
visibility = ["//visibility:public"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.