-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add lint to detect allow
attributes without reason
#8504
Conversation
r? @flip1995 (rust-highfive has picked a reviewer for you, use r? to override) |
b403321
to
039946e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM overall. restriction
sounds like the orrect lint group to me 👍
039946e
to
47a4ac3
Compare
47a4ac3
to
ab6ffb6
Compare
Good suggestions 👍 The lint name was also something I was thinking about. I've added your suggestions and squashed the commits 🙃 |
@bors r+ Thanks! |
📌 Commit ab6ffb6 has been approved by |
…1995 Add lint to detect `allow` attributes without reason I was considering putting this lint into the pedantic group. However, that would result in countless warnings for existing projects. Having it in restriction also seems good to me 🙃 (And now I need sleep 💤 ) --- changelog: New lint [`allow_lint_without_reason`] (Requires the `lint_reasons` feature) Closes: #8502
💔 Test failed - checks-action_test |
@bors retry
|
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
I was considering putting this lint into the pedantic group. However, that would result in countless warnings for existing projects. Having it in restriction also seems good to me 🙃 (And now I need sleep 💤 )
changelog: New lint [
allow_lint_without_reason
] (Requires thelint_reasons
feature)Closes: #8502