Skip to content

Commit

Permalink
checkstyle.xml: tweak name formats
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Aug 28, 2023
1 parent c751394 commit 254bcf0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions config/checkstyle/checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@
value="Parameter name ''{0}'' must match pattern ''{1}''."/>
</module>
<module name="LambdaParameterName">
<property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
<property name="format" value="^[a-z][a-zA-Z0-9]{0,19}$"/>
<message key="name.invalidPattern"
value="Lambda parameter name ''{0}'' must match pattern ''{1}''."/>
</module>
Expand All @@ -218,12 +218,12 @@
</module>
<module name="LocalFinalVariableName"/>
<module name="MethodName">
<property name="format" value="^[a-z][a-zA-Z0-9]*$"/>
<property name="format" value="^[a-z][a-zA-Z0-9]{0,29}$"/>
<message key="name.invalidPattern"
value="Method name ''{0}'' must match pattern ''{1}''."/>
</module>
<module name="PatternVariableName">
<property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
<property name="format" value="^[a-z][a-zA-Z0-9]{0,19}$"/>
<message key="name.invalidPattern"
value="Pattern variable name ''{0}'' must match pattern ''{1}''."/>
</module>
Expand All @@ -234,7 +234,7 @@
value="Class type name ''{0}'' must match pattern ''{1}''."/>
</module>
<module name="RecordComponentName">
<property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
<property name="format" value="^[a-z][a-zA-Z0-9]{0,19}$"/>
<message key="name.invalidPattern"
value="Record component name ''{0}'' must match pattern ''{1}''."/>
</module>
Expand Down

0 comments on commit 254bcf0

Please sign in to comment.