Repository navigation
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 |
camsteffen
left a comment
There was a problem hiding this comment.
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 |
|
@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.