-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathBUILD
More file actions
53 lines (47 loc) · 1.05 KB
/
BUILD
File metadata and controls
53 lines (47 loc) · 1.05 KB
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
44
45
46
47
48
49
50
51
52
53
load("@buildifier_prebuilt//:rules.bzl", "buildifier", "buildifier_test")
EXCLUDE_PATTERNS = [
# keep sorted
".bazelbsp",
".bazelversion",
".git",
".ijwb",
]
LINT_WARNINGS = [
"-module-docstring",
]
buildifier(
name = "buildifier",
exclude_patterns = EXCLUDE_PATTERNS,
lint_mode = "fix",
lint_warnings = LINT_WARNINGS,
)
buildifier_test(
name = "buildifier.test",
exclude_patterns = EXCLUDE_PATTERNS,
lint_mode = "warn",
lint_warnings = LINT_WARNINGS,
no_sandbox = True,
workspace = "//:MODULE.bazel",
)
exports_files(
glob(
["*"],
exclude = EXCLUDE_PATTERNS,
),
)
# This filegroup collects all parent workspace files needed by child workspaces
# for integration tests
filegroup(
name = "local_repository_files",
srcs = [
".bazelversion",
] + glob(
["*"],
exclude = EXCLUDE_PATTERNS,
) + [
"//platforms:all_files",
"//templates:all_files",
"//toolchains/cc:all_files",
],
visibility = ["//:__subpackages__"],
)