Conversation

To check a Rust program with the clippy linter, for syntax error, an any compile time semantic checks that the Rust compiler does, and also idiomatic use of the language and its standard library, and fail if any problems are found, including any warnings:

"cargo clippy --all-targets -q -- -D clippy::all"

1
0
0

@liw And it shall have alias "clippyyyyyyyyyyy".

1
0
0

@ilmari @liiwi I'm getting to the point where I won't need to run this command directly, by hand, any more. It is part of my super secret hobby project and will run for any Rust project of mine.

1
0
0
@liw @ilmari @liiwi i add that pedantic mode by default. I mean more static analysis free of charge 🤷‍♀️ sounds like deal to me
1
0
2
@liw @ilmari @liiwi I really hope that at least as an option fallible allocations would receive an enforcing clippy flag. For instance, I think that the whole https://github.com/rust-vmm stack might benefit from optional global semantics change. And being an optional clippy flag, it would no get in the way of the wasm payloads run in the web browser. I guess these are the 180 degrees contradicting goals in the whole Rust ecosystem where we just need to find over time the best possible balance 🙂
0
0
1