| load("@buildifier_prebuilt//:rules.bzl", "buildifier") | |
| package( | |
| default_applicable_licenses = ["//:license"], | |
| ) | |
| licenses(["notice"]) | |
| # 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"], | |
| ) |