-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBUILD.bazel
40 lines (35 loc) · 946 Bytes
/
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
load("@bazel_gazelle//:def.bzl", "gazelle")
load("@buildifier_prebuilt//:rules.bzl", "buildifier", "buildifier_test")
load("@hedron_compile_commands//:refresh_compile_commands.bzl", "refresh_compile_commands")
refresh_compile_commands(
name = "refresh_compile_commands",
# Specify the targets of interest.
# For example, specify a dict of targets and any flags required to build.
targets = {
"//cpp/...": "",
},
)
gazelle(name = "gazelle")
buildifier(
name = "buildifier",
exclude_patterns = [
"./.bazelbsp/*",
"./vcpkg_installed/*",
],
lint_mode = "fix",
)
buildifier_test(
name = "buildifier_test",
size = "small",
timeout = "short",
exclude_patterns = [
"./.bazelbsp/*",
"./.ijwb/*",
"./.clwb/*",
"./vcpkg_installed/*",
],
lint_mode = "warn",
mode = "diff",
no_sandbox = True,
workspace = "//:MODULE.bazel",
)