generated from bzlparty/rules-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.bazel
70 lines (61 loc) · 1.25 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
59
60
61
62
63
64
65
66
67
68
69
70
load("@buildifier_prebuilt//:rules.bzl", "buildifier", "buildifier_test")
load("@rules_license//rules:license.bzl", "license")
load("//lib:biome.bzl", "biome", "biome_test")
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",
"biome.json",
])
typos_test(
name = "typos",
exclude = [
"**/assets.bzl",
"**/vendor/**",
],
)
biome(
name = "check_write",
config = "//:biome.json",
)
biome_test(
name = "check",
config = "//:biome.json",
)
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",
)