Skip to content

Commit

Permalink
checkstyle.xml: stricter name checking for variables
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Aug 28, 2023
1 parent 4b405fb commit 66e8511
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/checkstyle/checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,12 @@
value="Type name ''{0}'' must match pattern ''{1}''."/>
</module>
<module name="MemberName">
<property name="format" value="^[a-z][a-zA-Z0-9]*$"/>
<property name="format" value="^[a-z][a-zA-Z0-9]{0,19}$"/>
<message key="name.invalidPattern"
value="Member name ''{0}'' must match pattern ''{1}''."/>
</module>
<module name="ParameterName">
<property name="format" value="^[a-z][a-zA-Z0-9]*$"/>
<property name="format" value="^[a-z][a-zA-Z0-9]{0,19}$"/>
<message key="name.invalidPattern"
value="Parameter name ''{0}'' must match pattern ''{1}''."/>
</module>
Expand All @@ -214,7 +214,7 @@
value="Catch parameter name ''{0}'' must match pattern ''{1}''."/>
</module>
<module name="LocalVariableName">
<property name="format" value="^[a-z][a-zA-Z0-9]*$"/>
<property name="format" value="^[a-z][a-zA-Z0-9]{0,19}$"/>
<message key="name.invalidPattern"
value="Local variable name ''{0}'' must match pattern ''{1}''."/>
</module>
Expand Down

0 comments on commit 66e8511

Please sign in to comment.