From 5f8dae514b2378fed4957d5f1863e949e98aa9a9 Mon Sep 17 00:00:00 2001 From: Stephen Hines Date: Thu, 29 Feb 2024 10:12:19 -0800 Subject: 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 --- rust/config/lints.go | 2 ++ 1 file changed, 2 insertions(+) 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", -- cgit v1.2.3