constellation/BUILD.bazel
Paul Meyer cc60de312e ci: adopt tidy workflow for bazel
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
2023-03-10 10:02:28 -05:00

35 lines
788 B
Python

load("@bazel_gazelle//:def.bzl", "gazelle")
load("@bazeldnf//:def.bzl", "bazeldnf")
load("@com_github_bazelbuild_buildtools//buildifier:def.bzl", "buildifier", "buildifier_test")
# gazelle:map_kind go_test go_test //bazel/go:go_test.bzl
# gazelle:prefix github.com/edgelesssys/constellation/v2
gazelle(name = "gazelle")
gazelle(
name = "gazelle-check",
command = "fix",
mode = "diff",
)
bazeldnf(name = "bazeldnf")
buildifier_test(
name = "buildifier-check",
timeout = "short",
lint_mode = "warn",
lint_warnings = ["all"],
mode = "diff",
no_sandbox = True,
verbose = True,
workspace = "WORKSPACE.bazel",
)
buildifier(
name = "buildifier-fix",
lint_mode = "fix",
lint_warnings = ["all"],
mode = "fix",
verbose = True,
)