Description
According to rust-lang/rust-clippy#configuration:
Some lints can be configured in a TOML file named clippy.toml or .clippy.toml. It contains a basic variable = value mapping eg.
We could consider adding Clippy configuration to allow running cargo clippy
on rust-analyzer
while developing without reporting large number of warnings that are not relevant to rust-analyzer
.
For the lints that currently cannot be configured in a TOML
file we can ignore those (allow those to report warnings) or add some "global" inner attributes that allow them.
I think ideally running cargo clippy
on rust-analyzer
should return no warnings / errors even if it means we allow some lints to pass. This could help people trying to contribute with creating more idiomatic solutions.