Pattern: Wrong {
placement
Issue: -
Checks for the placement of left curly braces ('{'
) for code blocks. The policy to verify is specified using the property option
.
To configure the check:
<module name="LeftCurly"/>
To configure the check to apply the nl
policy to type blocks:
<module name="LeftCurly">
<property name="option" value="nl"/>
<property name="tokens" value="CLASS_DEF,INTERFACE_DEF"/>
</module>
An example of how to configure the check to validate enum
definitions:
<module name="LeftCurly">
<property name="ignoreEnums" value="false"/>
</module>