Skip to content

Files

Latest commit

 

History

History
41 lines (24 loc) · 800 Bytes

LeftCurly.md

File metadata and controls

41 lines (24 loc) · 800 Bytes

Pattern: Wrong { placement

Issue: -

Description

Checks for the placement of left curly braces ('{') for code blocks. The policy to verify is specified using the property option.

Examples

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>

Further Reading