forked from bazel-contrib/rules_scala
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBUILD
More file actions
43 lines (40 loc) · 865 Bytes
/
BUILD
File metadata and controls
43 lines (40 loc) · 865 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
load(
"@com_github_bazelbuild_buildtools//buildifier:def.bzl",
"buildifier",
"buildifier_test",
)
WARNINGS_CONFIG = [
"-module-docstring",
"-function-docstring",
"-function-docstring-header",
"-function-docstring-return",
"-function-docstring-args",
"-positional-args",
"-unnamed-macro",
"-name-conventions",
"-print",
"-bzl-visibility",
"-no-effect",
"-provider-params",
"-unused-variable",
]
buildifier_test(
name = "lint_check",
exclude_patterns = [
"./.ijwb/*",
],
lint_mode = "warn",
lint_warnings = WARNINGS_CONFIG,
mode = "check",
no_sandbox = True,
workspace = "//:MODULE.bazel",
)
buildifier(
name = "lint_fix",
exclude_patterns = [
"./.ijwb/*",
],
lint_mode = "fix",
lint_warnings = WARNINGS_CONFIG,
mode = "fix",
)