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
Inconsistent allowedAbbreviations when a method contains an underscore #12409
Comments
I am just talking about this from the code and the reason, not issue approval. This seems similar to #8863 but this issue has a better report.
|
I think there is issue with I am approving issue. Whole logic is at https://github.com/checkstyle/checkstyle/blob/master/src/main/java/com/puppycrawl/tools/checkstyle/checks/naming/AbbreviationAsWordInNameCheck.java How to debug https://checkstyle.org/beginning_development.html PR is welcome. |
Config:
Are Following Violations or Not, According To Current Code it's not violation but I think it should be violation ?
|
I should not be violation, as all capitalized words are in allowed list |
If you see closely, it's not "VARIABLE" but it is "VARIABLEN" which is not part of allowed list. Still not violation ? |
|
Got it |
Fix was merged |
https://checkstyle.org/config_naming.html#AbbreviationAsWordInName
There are four words in allowedAbbreviations when defining a method that has an underscore between different combinations, some are allowed and others are not. It is unclear to me why getTEST_OBSERVATION works and getORDER_OBSERVATION throws an an error.
The text was updated successfully, but these errors were encountered: