-
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 import_rename lint, this adds a field on the Conf struct #7300
Conversation
r? @flip1995 (rust-highfive has picked a reviewer for you, use r? to override) |
☔ The latest upstream changes (presumably #7315) made this pull request unmergeable. Please resolve the merge conflicts. |
Remove requirement of fully qualified path for disallowed_method/type changelog: Remove the need for fully qualified paths in disallowed_method and disallowed_type After fixing this issue in [import_rename](#7300 (comment)) I figured I'd fix it for these two. If this does in fact fix the **Known problems:** section I was planning to remove them from both lints after confirmation.
☔ The latest upstream changes (presumably #7299) made this pull request unmergeable. Please resolve the merge conflicts. |
2ceaffa
to
8b44012
Compare
☔ The latest upstream changes (presumably #7385) made this pull request unmergeable. Please resolve the merge conflicts. |
@DevinR528 This will need a rebase. r? @camsteffen You pretty much reviewed this PR yourself. Can you please take over the review of this PR? |
Rebased and ready to go. Is there a web page like the one with all the clippy lints with the config options? I feel like I've seen/used it or I'm imagining 🤷 |
The config options are on the webpage with the lint documentation. To try it out, you can run |
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.
I'm unsure about the lint name. deny(import_rename)
looks like a total ban of renames. missing_enforced_import_renames
is a bit long...
I think the config option could be named enforced_import_renames
to be more clear.
CC @rust-lang/clippy thoughts?
I like the rename proposed by @camsteffen |
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.
One nit. Please squash commits then r=me. Thanks!
@bors delegate+ |
✌️ @DevinR528 can now approve this pull request |
Rename lint and fix review issues
@bors r+ |
📌 Commit 9492de5 has been approved by |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
Thanks everyone who helped especially @camsteffen! |
fixes #7276
changelog: Add
[`import_rename`]
a lint that enforces import renaming defined in the config file.