-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.bazel
51 lines (43 loc) · 1.13 KB
/
BUILD.bazel
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
load("@bazel_clang_format//:defs.bzl", "clang_format_update")
load("@bazel_clang_tidy//:defs.bzl", "clang_tidy_apply_fixes")
load("@buildifier_prebuilt//:rules.bzl", "buildifier")
package(default_visibility = ["//visibility:public"])
filegroup(
name = "format_config",
srcs = [".clang-format"],
visibility = ["//visibility:public"],
)
filegroup(
name = "format_ignore",
srcs = [
"//third_party/vesc_uart",
],
visibility = ["//visibility:public"],
)
filegroup(
name = "tidy_config",
srcs = [".clang-tidy"],
visibility = ["//visibility:public"],
)
clang_format_update(
name = "clang-format",
binary = "@llvm_16_toolchain//:clang-format",
config = ":format_config",
ignore = ":format_ignore",
)
clang_tidy_apply_fixes(
name = "clang-tidy-fix",
apply_replacements_binary = "@llvm_16_toolchain//:clang-apply-replacements",
tidy_binary = "@llvm_16_toolchain//:clang-tidy",
tidy_config = ":tidy_config",
)
buildifier(
name = "buildifier.check",
lint_mode = "warn",
mode = "check",
)
buildifier(
name = "buildifier.fix",
lint_mode = "warn",
mode = "fix",
)