Open ijackson opened 7 months ago
Thank you!
Finally I got around to looking into your list. I found that most lints will already ignore test code if configured so:
dbg_macro
has an allow-dbg-in-tests configuration. If you set that to true
in your clippy.toml
, you can remove that lint from your list globally.=true
takes care of both print_stdout
and print_stderr
.single_char_pattern
has been demoted to pedantic
anyway, so it won't be linted at all unless you explicitly activate it.unwrap_used
ignore testsuseless_vec
I'll have a look at the other lints when I find a few spare minutes.
Description
In Arti have things like the following:
Our
maint/add_warning
is a Python script that keeps the (currently) 236 copies of this lint block in sync across our 61 crates.It would be nice if there were a way to systematically and centrally disable these lints for all our tests. Probably, many of them should be disabled by default.
(@llogiq suggested I should file this ticket)
Version
No response
Additional Labels
No response