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 allow_attribute lint #10481

Merged
merged 7 commits into from
Mar 16, 2023
Merged

Add allow_attribute lint #10481

merged 7 commits into from
Mar 16, 2023

Conversation

blyxyas
Copy link
Member

@blyxyas blyxyas commented Mar 10, 2023

Fixes #10468

changelog: new lint: [allow_attributes]
#10481

@rustbot
Copy link
Collaborator

rustbot commented Mar 10, 2023

r? @xFrednet

(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 Mar 10, 2023
Copy link
Member

@xFrednet xFrednet left a comment

Choose a reason for hiding this comment

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

This is a good start, I've left some comments, how I believe the code can be improved. You're welcome to ask if you have any questions :)

clippy_lints/src/allow_attribute.rs Outdated Show resolved Hide resolved
clippy_lints/src/allow_attribute.rs Outdated Show resolved Hide resolved
clippy_lints/src/allow_attribute.rs Outdated Show resolved Hide resolved
clippy_lints/src/allow_attribute.rs Outdated Show resolved Hide resolved
clippy_lints/src/allow_attribute.rs Outdated Show resolved Hide resolved
tests/ui/allow_attribute.fixed Outdated Show resolved Hide resolved
tests/ui/allow_attribute.rs Outdated Show resolved Hide resolved
Copy link
Member

@xFrednet xFrednet left a comment

Choose a reason for hiding this comment

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

Four nits, that should be simple to fix and then this should be ready for merge. Thank you for the swift updates! :D

clippy_lints/src/allow_attribute.rs Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
clippy_lints/src/allow_attribute.rs Outdated Show resolved Hide resolved
tests/ui/allow_attribute.stderr Outdated Show resolved Hide resolved
@xFrednet
Copy link
Member

This version looks good to me, thank you for implementing this lint! I like it :)

There was still a small formatting NIT where I don't think it was worth it to leave a comment about. I fixed up your last commit. Hope that's okay with you :)

@bors r+

@bors
Copy link
Collaborator

bors commented Mar 16, 2023

📌 Commit 1cab0cb has been approved by xFrednet

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Mar 16, 2023

⌛ Testing commit 1cab0cb with merge 5afa93b...

@bors
Copy link
Collaborator

bors commented Mar 16, 2023

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: xFrednet
Pushing 5afa93b to master...

1 similar comment
@bors
Copy link
Collaborator

bors commented Mar 16, 2023

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: xFrednet
Pushing 5afa93b to master...

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.

Lint: Suggestion #[expect] over #[allow]
4 participants