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 Check: PatternVariableName #8407

Closed
nrmancuso opened this issue Jul 6, 2020 · 1 comment
Closed

new Check: PatternVariableName #8407

nrmancuso opened this issue Jul 6, 2020 · 1 comment

Comments

@nrmancuso
Copy link
Member

nrmancuso commented Jul 6, 2020

Child of #8391
Similar Check: https://checkstyle.sourceforge.io/config_naming.html#LocalVariableName

This check applies to the variable defined in the pattern definition.
From JLS:
Pattern variables are implicitly final by design.

This check should not apply to pattern variable definitions, but since it is still a variable definition, we should make UT to make sure that it stays that way.

@nrmancuso nrmancuso changed the title Java14 enhanced instanceof check validation: LocalVariableNameCheck Introduce Java14 enhanced instanceof syntax check: PatternVariableName Jul 6, 2020
@romani romani changed the title Introduce Java14 enhanced instanceof syntax check: PatternVariableName new Check: PatternVariableName Jul 7, 2020
@romani romani added the approved label Jul 7, 2020
nrmancuso added a commit to nrmancuso/checkstyle that referenced this issue Jul 7, 2020
nrmancuso added a commit to nrmancuso/checkstyle that referenced this issue Jul 7, 2020
nrmancuso added a commit to nrmancuso/checkstyle that referenced this issue Jul 8, 2020
nrmancuso added a commit to nrmancuso/checkstyle that referenced this issue Jul 8, 2020
nrmancuso added a commit to nrmancuso/checkstyle that referenced this issue Jul 8, 2020
@esilkensen esilkensen added this to To do in Java 14 syntax features via automation Jul 11, 2020
@esilkensen esilkensen moved this from To do to Review in progress in Java 14 syntax features Jul 11, 2020
nrmancuso added a commit to nrmancuso/checkstyle that referenced this issue Jul 13, 2020
nrmancuso added a commit to nrmancuso/checkstyle that referenced this issue Jul 15, 2020
nrmancuso added a commit to nrmancuso/checkstyle that referenced this issue Jul 26, 2020
nrmancuso added a commit to nrmancuso/checkstyle that referenced this issue Jul 26, 2020
nrmancuso added a commit to nrmancuso/checkstyle that referenced this issue Jul 26, 2020
@romani romani added this to the 8.36 milestone Jul 26, 2020
@romani
Copy link
Member

romani commented Jul 26, 2020

Fix is merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests

2 participants