pre-commit-rust icon indicating copy to clipboard operation
pre-commit-rust copied to clipboard

disable "deny warning"

Open danieleades opened this issue 4 years ago • 0 comments

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.

danieleades avatar Sep 17 '21 13:09 danieleades