Skip to content
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 configuration for [wildcard_imports] to ignore certain imports #11979

Merged
merged 3 commits into from
Feb 2, 2024

Conversation

J-ZhengLi
Copy link
Member

fixes: #11428

changelog: add configuration ignored-wildcard-imports for lint [wildcard_imports]

@rustbot
Copy link
Collaborator

rustbot commented Dec 18, 2023

r? @Alexendoo

(rustbot has picked a reviewer for you, use r? to override)

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Dec 18, 2023
@bors
Copy link
Collaborator

bors commented Dec 29, 2023

☔ The latest upstream changes (presumably #10283) made this pull request unmergeable. Please resolve the merge conflicts.

clippy_lints/src/wildcard_imports.rs Outdated Show resolved Hide resolved
clippy_config/src/conf.rs Outdated Show resolved Hide resolved
clippy_config/src/conf.rs Outdated Show resolved Hide resolved
@J-ZhengLi J-ZhengLi force-pushed the issue11428 branch 2 times, most recently from 1c8ab10 to a7c4f15 Compare January 19, 2024 03:19
@J-ZhengLi
Copy link
Member Author

@Alexendoo Sorry I didn't know this has been reviewed, must've been buried under other notifications...

Could you help reviewing it again?

@bors
Copy link
Collaborator

bors commented Jan 20, 2024

☔ The latest upstream changes (presumably #12144) made this pull request unmergeable. Please resolve the merge conflicts.

@@ -1 +1,2 @@
warn-on-all-wildcard-imports = true
ignored-wildcard-imports = ["utils"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One last thing actually, would be good to add a comment here that mentions it's ignored because of warn-on-all-wildcard-imports

@Alexendoo
Copy link
Member

Thanks, LGTM just needs a rebase to fix the conflict

@Alexendoo
Copy link
Member

Great, thanks!

@bors r+

@bors
Copy link
Collaborator

bors commented Jan 31, 2024

📌 Commit 1ae8acd has been approved by Alexendoo

It is now in the queue for this repository.

bors added a commit that referenced this pull request Jan 31, 2024
add configuration for [`wildcard_imports`] to ignore certain imports

fixes: #11428

changelog: add configuration `ignored-wildcard-imports` for lint [`wildcard_imports`]
@bors
Copy link
Collaborator

bors commented Jan 31, 2024

⌛ Testing commit 1ae8acd with merge fe4eae8...

@bors
Copy link
Collaborator

bors commented Jan 31, 2024

💔 Test failed - checks-action_test

@Alexendoo
Copy link
Member

Ah it needs cargo collect-metadata to be run, happens any time there's an update to the Conf definition

@J-ZhengLi
Copy link
Member Author

Ah it needs cargo collect-metadata to be run, happens any time there's an update to the Conf definition

oh no I always forget that, oops...

Should be good for now, sorry about that

@Alexendoo
Copy link
Member

No worries! I think we all forget about that

@bors r+

@bors
Copy link
Collaborator

bors commented Feb 2, 2024

📌 Commit 46dd826 has been approved by Alexendoo

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Feb 2, 2024

⌛ Testing commit 46dd826 with merge c82162e...

@bors
Copy link
Collaborator

bors commented Feb 2, 2024

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: Alexendoo
Pushing c82162e to master...

@bors bors merged commit c82162e into rust-lang:master Feb 2, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature request][wildcard_imports] Configuration option for ignored wildcard imports
4 participants