Skip to content

Commit c81e712

Browse files
committed
Enable all default buildfier lint warnings
Automatically fix lint warnings if possible. Just disable module-docstrings for now.
1 parent ce571ae commit c81e712

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

BUILD.bazel

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,23 @@ load("@com_github_bazelbuild_buildtools//buildifier:def.bzl", "buildifier", "bui
22

33
exports_files(["defs.bzl"])
44

5+
_lint_warnings = [
6+
"-module-docstring", # disable module docstrings
7+
]
8+
59
buildifier_test(
610
name = "buildifier-test",
711
buildifier = "@buildifier//:buildifier",
812
diff_command = "diff -u",
13+
lint_mode = "warn",
14+
lint_warnings = _lint_warnings,
915
no_sandbox = True,
1016
workspace = ":WORKSPACE",
1117
)
1218

1319
buildifier(
1420
name = "buildifier",
1521
buildifier = "@buildifier//:buildifier",
16-
lint_mode = "warn",
22+
lint_mode = "fix",
23+
lint_warnings = _lint_warnings,
1724
)

0 commit comments

Comments
 (0)