-
Notifications
You must be signed in to change notification settings - Fork 147
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
Negation in name #802
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
checkstyle/checkstyle#7529 (comment)
Usage of "not" is not very good if there is a way to use opposite word, it is ok especially if there is sibling method with positive name. In our case we do have such sibling method, so we will not force to use double negation.
I do not think there will be any maintenance costs for extra method, especially if we place them close to each other.
We spoke a lot about methods that starts with "no", I think we are ready to make Check on this in sevntu project, in config user need to be able to provide map of method sibling to skip violation on method that starts with negation.
We need to collect knowledge on this.
The text was updated successfully, but these errors were encountered: