pmd / pmd

An extensible multilanguage static code analyzer.

Home Page:https://pmd.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[java] LocalVariableNamingConventions should allow unnamed variables by default

cowwoc opened this issue · comments

Is your feature request related to a problem? Please describe.
https://openjdk.org/jeps/456 (Java 22) added unnamed variables denoted by _ (underscore)

The default regex for LocalVariableNamingConventions should include _ for unnamed variables, parameters, catch blocks.

Rule: LocalVariableNameConventions