pre-commit-rust
pre-commit-rust copied to clipboard
disable "deny warning"
should this hook provide a way to disable the 'deny warnings' flag?
many codebases (including my own) use compiler flags to set the warning level for clippy lints. the 'deny warnings' flag escalates them further, beyond the original intention of the author.
for a concrete example, i tend to use
#![deny(clippy::all)]
#![warn(clippy::pedantic)]
this hook effectively elevates this to
#![deny(clippy::all)]
#![deny(clippy::pedantic)]
this is a nightmare for reproducible builds, for example.