-
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
Pluralize disallowed_type
lint
#7984
Conversation
r? @camsteffen (rust-highfive has picked a reviewer for you, use r? to override) |
82c81fb
to
399c5eb
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.
While we're at it, there's also disallowed_method
, that does pretty much the same, which could also be pluralized.
r? @flip1995 (I want to get this merged by tomorrow. So assigning it to myself, so I'm to blame if it's not merged by then) |
3ad9ba6
to
8183ed5
Compare
r? @xFrednet Since I updated the PR, I'll now push it forward for a third pair of eyes. |
This was brought up in [Zulip] and is also mentioned in the lint naming conventions. Since this is still a nursery lint, I think there shouldn't be any problem in renaming it. [Zulip]: https://rust-lang.zulipchat.com/#narrow/stream/257328-clippy/topic/disallow_type.20vs.20disallowed-types
This way they match up with the pluralized lint name as well.
To stay consistent with the sister lint disallowed_type, also rename the disallowed_method lint to disallowed_methods.
8183ed5
to
9b38fb7
Compare
LGTM, thanks! @bors r+ |
📌 Commit 9b38fb7 has been approved by |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
This was brought up in Zulip and is also mentioned in the lint naming
conventions. Since this is still a nursery lint, I think there shouldn't
be any problem in renaming it.
changelog: Rename nursery lint [
disallowed_type
] to [disallowed_types
].