Lint #[level()]
attribute without lint reason (#![feature(lint_reasons)]
)
#8502
Labels
A-lint
Area: New lints
What it does
It checks for level attributes without a
reason
.I think it would be good to have a config value that sets the minimum lint level of the#[level()]
attribute. By default, it should only warn forallow
endexpect
I actually don't think that this actually requires a config value :)
Lint Name
allow_lint_without_reason
Category
restriction
Advantage
Enforces the user to reason about allowed lints
Drawbacks
Updating current code bases will take quite some work
Example
Could be written as:
@rustbot claim
The text was updated successfully, but these errors were encountered: