1load("@com_github_bazelbuild_buildtools//buildifier:def.bzl", "buildifier") 2 3package( 4 default_applicable_licenses = ["//:license"], 5) 6 7licenses(["notice"]) 8 9# Sample usage: "bazel run //bazel:buildifier". 10buildifier( 11 name = "buildifier", 12 exclude_patterns = [ 13 "./bazel/rbe/gce_linux/*", 14 "./modules/*", 15 "./node_modules/*", 16 "./**/node_modules/*", 17 "./third_party/externals/*", 18 ], 19 lint_mode = "fix", 20 lint_warnings = [ 21 # Prevents https://github.com/bazelbuild/buildtools/blob/master/WARNINGS.md#native-android. 22 "-native-android", 23 # Prevents https://github.com/bazelbuild/buildtools/blob/master/WARNINGS.md#native-cc. 24 "-native-cc", 25 # Prevents https://github.com/bazelbuild/buildtools/blob/master/WARNINGS.md#native-py. 26 "-native-py", 27 ], 28 visibility = ["//visibility:public"], 29) 30