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

New rule: avoid_similar_names #95

Open
danylo-safonov-solid opened this issue Dec 15, 2023 · 0 comments
Open

New rule: avoid_similar_names #95

danylo-safonov-solid opened this issue Dec 15, 2023 · 0 comments

Comments

@danylo-safonov-solid
Copy link
Contributor

e.g. if names differ by one character, especially if the characters are similar (e.g. digit 1 and letter l)

BAD:

bool isEqual(SomeClass someClass1, SomeClass someClass2) ...

BETTER:

bool isEqual(SomeClass someClassA, SomeClass someClassB) ...

GOOD:

bool isEqual(SomeClass that, SomeClass other) ...

GOOD:

bool isEqual(SomeClass first, SomeClass second) ...
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

No branches or pull requests

1 participant