blob: 9f697130ec22e70dd8a93e0a4328c18460b44ba4 [file] [edit]
load("@buildifier_prebuilt//:rules.bzl", "buildifier", "buildifier_test")
load("@rules_shell//shell:sh_binary.bzl", "sh_binary")
load("@rules_shell//shell:sh_test.bzl", "sh_test")
buildifier(
name = "buildifier.check",
exclude_patterns = [
"./.git/*",
],
lint_mode = "warn",
lint_warnings = [
"-cc-native",
],
mode = "diff",
)
buildifier(
name = "buildifier.fix",
exclude_patterns = [
"./.git/*",
],
lint_mode = "fix",
lint_warnings = [
"-cc-native",
],
mode = "fix",
)
buildifier_test(
name = "buildifier.test",
srcs = ["BUILD"],
lint_mode = "warn",
)
buildifier_test(
name = "buildifier.test.workspace",
srcs = ["BUILD"],
lint_mode = "warn",
no_sandbox = True,
workspace = "WORKSPACE",
)
sh_binary(
name = "hello_world",
srcs = ["hello_world.sh"],
)
sh_test(
name = "hello_world_test",
srcs = ["hello_world_test.sh"],
data = [
":hello_world",
],
deps = [
"@bazel_tools//tools/bash/runfiles",
],
)