diff options
author | Stephen Hines <srhines@google.com> | 2024-02-29 10:12:19 -0800 |
---|---|---|
committer | Stephen Hines <srhines@google.com> | 2024-02-29 10:12:19 -0800 |
commit | 5f8dae514b2378fed4957d5f1863e949e98aa9a9 (patch) | |
tree | eb9ce4100a73ed7ba7662b29460ed248b0784ba7 | |
parent | 6c2cd902323b5ac62b58c40bb07ed0d3d85d56ad (diff) | |
download | soong-5f8dae514b2378fed4957d5f1863e949e98aa9a9.tar.gz |
Allow clippy::disallowed_names since it can be used for debugging
https://rust-lang.github.io/rust-clippy/master/index.html#/disallowed_names
The current list is extremely short ("foo", "baz", "quux"), and thus
this really just prevents people from temporarily using `foo` to debug
code. In the spirit of improving productivity and reducing frustration,
it's easier to just allow this.
Bug: N/A
Test: TH
Change-Id: I50b65486ed2b58bfd2cf699ee3b43b936d25f2cb
-rw-r--r-- | rust/config/lints.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rust/config/lints.go b/rust/config/lints.go index 7770af03e..735aa169b 100644 --- a/rust/config/lints.go +++ b/rust/config/lints.go @@ -53,6 +53,8 @@ var ( // It should be assumed that any warning lint will be promoted to a // deny. defaultClippyLints = []string{ + // Let people hack in peace. ;) + "-A clippy::disallowed_names", "-A clippy::type-complexity", "-A clippy::unnecessary_fallible_conversions", "-A clippy::unnecessary-wraps", |