-
Notifications
You must be signed in to change notification settings - Fork 4
/
BUILD
57 lines (50 loc) · 1.45 KB
/
BUILD
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
54
55
56
57
# Linter, Formatter Rules
# buildifier for starlark, clang_format for c/c++, google_java_format for java
load("@com_github_bazelbuild_buildtools//buildifier:def.bzl", "buildifier", "buildifier_test")
load("//tools/lint/clang_format:def.bzl", "clang_format", "clang_format_test")
load("//tools/lint/google_java_format:def.bzl", "google_java_format", "google_java_format_test")
test_suite(
name = "lint_all",
tests = [
":buildifier_test",
":clang_format_test",
":google_java_format_test",
],
)
buildifier(name = "buildifier")
buildifier_test(
name = "buildifier_test",
srcs = glob(
[
"**/*.bzl",
"**/*.bazel",
"**/BUILD",
],
exclude = ["bazel-*/**/*"],
) + ["WORKSPACE"],
)
clang_format(
name = "clang_format",
exclude_patterns = ["./third_party/*"],
)
clang_format_test(
name = "clang_format_test",
srcs = [
"//nori/c:headers",
"//nori/c:srcs",
"//nori/cli:clang_format_files",
"//nori/lib:clang_format_files",
"//nori/python/nori:clang_format_files",
],
config = ".clang-format",
exclude_patterns = ["./third_party/*"],
)
google_java_format(name = "google_java_format")
google_java_format_test(
name = "google_java_format_test",
srcs = [
"//tools/benchmark:nori_runner_srcs",
"//tools/comparison:nori_runner_srcs",
"//tools/nori_visualizer:nori_visualizer_srcs",
],
)