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