lint: Add disabled clang-format linter
A follow-up patch will enable the linter and run clang-format on the
entire repo. You'll be able to run it in one of two ways:
$ bazel run //tools/lint:clang_format
and, along with all the other linters once its enabled:
$ bazel run //tools/lint:run-ci
Signed-off-by: Philipp Schrader <philipp.schrader@gmail.com>
Change-Id: I1dab4e682096826ee57d70f8c82662d9c2c33217
diff --git a/tools/lint/BUILD b/tools/lint/BUILD
index 23ba4d6..a881124 100644
--- a/tools/lint/BUILD
+++ b/tools/lint/BUILD
@@ -7,6 +7,17 @@
)
sh_binary(
+ name = "clang_format",
+ srcs = ["clang_format.sh"],
+ data = [
+ "@llvm_k8//:bin",
+ ],
+ deps = [
+ "@bazel_tools//tools/bash/runfiles",
+ ],
+)
+
+sh_binary(
name = "gofmt",
srcs = ["gofmt.sh"],
data = [
@@ -70,6 +81,7 @@
],
data = [
":buildifier",
+ ":clang_format",
":gofmt",
":prettier",
":rustfmt",