Announcing the Clippy feature freeze
blog.rust-lang.org
Announcing the Clippy feature freeze
1–10 of 10 posts
Re: Announcing the Clippy feature freeze
#2Re: Announcing the Clippy feature freeze
#3Clippy really is a labour of love project, and it’s been great to work with these folk I will try to pick up some issues in the coming weeks.
Re: Announcing the Clippy feature freeze
#4FYI “Rust’s Clippy is a collection of lints (static analysis rules) designed to catch common mistakes and suggest improvements in your Rust code.”
Or at the other end of the scale, the average Rust programmer doesn't care that their code could panic if numbers stop making sense, for example if I'm summing the number of employees who quality for a bonus scheme, the fact that this operation (which I think might reach hundreds but likely is only dozens) could panic if it exceeds u32::MAX isn't worth linting. But if you write jet engine firmware, you need to take such "this can't happen" cases more seriously so you can turn on a lint which forbids these naive operations.
Re: Announcing the Clippy feature freeze
#5Re: Announcing the Clippy feature freeze
#6Re: Announcing the Clippy feature freeze
#7If Clippy struggles to account for current and future changes to the Rust compiler this to me raises an obvious question: why isn’t Clippy part of the Rust compiler?
Clippy is a large collection of mostly unrelated lints, and more are always added. Understandably, they accumulate craft. I think stopping new lints for some time is a reasonable thing to do to keep a healthy codebase.
Re: Announcing the Clippy feature freeze
#8Re: Announcing the Clippy feature freeze
#9Just to be clear, this has nothing to do with Microsoft Clippy. This post is about a tool for a programming language called Rust.
Re: Announcing the Clippy feature freeze
#10If Clippy struggles to account for current and future changes to the Rust compiler this to me raises an obvious question: why isn’t Clippy part of the Rust compiler?
The compiler and clippy use the same “engine” to lint, but they are focused on different use cases, with clippy being more general development, whereas the linter in rustc is focused on language usage.