Skip to content

similar_names stop linting for 3-char names #15100

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

Merged
merged 1 commit into from
Aug 16, 2025

Conversation

honeyspoon
Copy link
Contributor

@honeyspoon honeyspoon commented Jun 22, 2025

fixes #14869

Added a simple check if both chars are of length 3
If they are, we skip the check for that pair.

This won't handle the 4 v 3 case.
Not sure if this was the intent of the issue.

Also saw we have some hardcoded exemptions for set, get and lhs, rhs
Tried removing them thinking they would be handled by the new condition.
But we have to keep because they allow for bla_lhs v bla_rhs to be skipped

changelog:[similar_names]: Stop triggering for 3-character names

@rustbot
Copy link
Collaborator

rustbot commented Jun 22, 2025

r? @y21

rustbot has assigned @y21.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Jun 22, 2025
@honeyspoon
Copy link
Contributor Author

r? @lyxyas

@rustbot
Copy link
Collaborator

rustbot commented Jul 15, 2025

Failed to set assignee to lyxyas: invalid assignee

Note: Only org members with at least the repository "read" role, users with write permissions, or people who have commented on the PR may be assigned.

@ada4a
Copy link
Contributor

ada4a commented Jul 25, 2025

you probably meant blyxyas?

@honeyspoon
Copy link
Contributor Author

sure or anybody that can review

@honeyspoon
Copy link
Contributor Author

r? @blyxyas

@rustbot rustbot assigned blyxyas and unassigned y21 Jul 27, 2025
@blyxyas
Copy link
Member

blyxyas commented Jul 27, 2025

Hi @honeyspoon, thanks for pinging me, I'll review it as soon as I have the time (I have some more reviews in queue and I'm currently writing a Project Goal).

Thanks for contributing!

@blyxyas blyxyas changed the title fixes #14869 similar_names stop linting for 3-char names Jul 27, 2025
Copy link
Member

@blyxyas blyxyas left a comment

Choose a reason for hiding this comment

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

LGTM, thanks! ❤️
Sorry for the slow review, and welcome to the project. Could you squish the 3 commits into one?

Copy link

Lintcheck changes for e41fb7c

Lint Added Removed Changed
clippy::similar_names 0 48 5

This comment will be updated if you push new changes

@honeyspoon
Copy link
Contributor Author

thanks I just squashed

@blyxyas blyxyas added this pull request to the merge queue Aug 16, 2025
Merged via the queue into rust-lang:master with commit 1fd9504 Aug 16, 2025
11 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Aug 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Stop triggering similar_names for 3-character names
5 participants