2 ms·
The clippy bit is a little confusing: > It also looks like (soon) you’ll finally be able to configure global lints for a project. Until now, you had to hack yo
by brundolf 3y ago
The clippy bit is a little confusing:
> It also looks like (soon) you’ll finally be able to configure global lints for a project. Until now, you had to hack your solution to keep lints consistent for projects. In Wick, we use a script to automatically update inline lint configurations for a few dozen crates.
It's trivial to configure global lints per crate. The author's problem comes down to having multiple crates per project. Which is something people do sometimes, and should be supported, but there's a big difference between the two interpretations. I would go so far as to say most Rust projects are only one crate (and so support "global" linter configuration)
- xvedejas 3y agoI believe procedural macros always need to be defined in a separate crate, so at least all projects that use procedural macros will have multiple crates
- brundolf 3y agoStill, that's two global configurations to manage, where the original wording was easy to misunderstand as "you have to override linter warnings at every single line where they occur"