generated from bzlparty/rules-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.bazel
58 lines (51 loc) · 1.07 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
52
53
54
55
56
57
58
load("@buildifier_prebuilt//:rules.bzl", "buildifier", "buildifier_test")
load("@rules_license//rules:license.bzl", "license")
load("//lib:topiary.bzl", "topiary")
load("//lib:typos.bzl", "typos_test")
package(
default_applicable_licenses = [":license"],
default_visibility = ["//visibility:public"],
)
license(
name = "license",
license_kinds = [
"@rules_license//licenses/spdx:LGPL-3.0-or-later",
],
license_text = "LICENSE",
)
exports_files([
"LICENSE",
"MODULE.bazel",
"extensions.bzl",
])
typos_test(
name = "typos",
exclude = [
"**/assets.bzl",
"**/cmd/dcomment/dcomment.cpp",
],
)
topiary(
name = "topiary",
extensions = ["json"],
)
buildifier(
name = "format",
exclude_patterns = [
"./.git/*",
"**/assets.bzl",
],
lint_mode = "fix",
mode = "fix",
)
buildifier_test(
name = "lint",
size = "small",
exclude_patterns = [
"**/assets.bzl",
],
lint_mode = "warn",
mode = "check",
no_sandbox = True,
workspace = ":MODULE.bazel",
)