Checks for braces around code blocks.
By default the check will check the following blocks:
TokenTypes.LITERAL_DO LITERAL_DO ,
TokenTypes.LITERAL_ELSE LITERAL_ELSE ,
TokenTypes.LITERAL_FOR LITERAL_FOR ,
TokenTypes.LITERAL_IF LITERAL_IF ,
TokenTypes.LITERAL_WHILE LITERAL_WHILE .
An example of how to configure the check is:
<module name="NeedBraces"/>
An example of how to configure the check for if and
else blocks is:
<module name="NeedBraces">
<property name="tokens" value="LITERAL_IF, LITERAL_ELSE"/>
</module>
author: Rick Giles version: 1.0 |