Fix typo in exceptionVariableName in EmptyCatchBlockCheck#35092
Fix typo in exceptionVariableName in EmptyCatchBlockCheck#35092izeye wants to merge 1 commit intospring-projects:mainfrom
Conversation
This commit also changes to use "ignored" for exception variable names instead of "ignore". See spring-projectsgh-35047 Signed-off-by: Johnny Lim <izeye@naver.com>
|
Should we apply this? I get that "ignore" is not a noun so maybe not very well suited for a variable name. Do we really need to go that far on everything? Should we also refactor the entire codebase to only allow nouns as variable names? |
Indeed, it's a regular expression, not a typo. It's just not immediately obvious from the Checkstyle configuration. Perhaps changing the pattern to And perhaps limiting it to only
"expected" is also not a noun, so we certainly don't need to enforce any kind of "nouns only" check. In light of the above, I am closing this PR. However, we can still consider tightening the RegEx we use for |
|
Thanks @izeye |
This PR fixes a typo in
exceptionVariableNameinEmptyCatchBlockCheck.This PR also changes to use "ignored" for exception variable names instead of "ignore".
See gh-35047