Skip to content

Commit 9810e85

Browse files
committed
build(bazel): enable clippy
1 parent cbe3e0d commit 9810e85

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.bazelrc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,9 @@ build --bes_backend=grpcs://remote.buildbuddy.io
33
build --remote_cache=grpcs://remote.buildbuddy.io
44
build --remote_timeout=3600
55

6-
try-import %workspace%/.bazelrc.user
6+
try-import %workspace%/.bazelrc.user
7+
8+
# Setup clippy (http://bazelbuild.github.io/rules_rust/rust_clippy.html)
9+
build --aspects=@rules_rust//rust:defs.bzl%rust_clippy_aspect
10+
build --output_groups=+clippy_checks
11+
build --@rules_rust//:clippy.toml=//:clippy.toml

BUILD.bazel

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# let .bazelrc specifcies clippy config
2+
exports_files(["clippy.toml"])

0 commit comments

Comments
 (0)