Skip to content

Files

Latest commit

 

History

History
30 lines (17 loc) · 765 Bytes

LocalVariableName.md

File metadata and controls

30 lines (17 loc) · 765 Bytes

Pattern: Invalid local, non-final variable name

Issue: -

Description

Checks that local, non-final variable names conform to a format specified by the format property.

Examples

To configure the check to use the default configuration:

<module name="LocalVariableName"/>

An example of how to configure the check to allow one character variable name in initialization expressions in FOR loop:

<module name="LocalVariableName">
    <property name="allowOneCharVarInForLoop" value="true"/>
</module>

Further Reading