include try/catch in left-curly rule
This commit is contained in:
parent
16123e0dee
commit
9426b5da78
1 changed files with 3 additions and 3 deletions
|
|
@ -1,8 +1,8 @@
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
|
|
||||||
<!DOCTYPE module PUBLIC
|
<!DOCTYPE module PUBLIC
|
||||||
"-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
|
"-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
|
||||||
"https://checkstyle.org/dtds/configuration_1_3.dtd">
|
"https://checkstyle.org/dtds/configuration_1_3.dtd">
|
||||||
<module name="Checker">
|
<module name="Checker">
|
||||||
<!-- CheckStyle settings -->
|
<!-- CheckStyle settings -->
|
||||||
|
|
||||||
|
|
@ -56,7 +56,7 @@
|
||||||
<module name="LeftCurly">
|
<module name="LeftCurly">
|
||||||
<property name="option" value="eol"/>
|
<property name="option" value="eol"/>
|
||||||
<property name="tokens"
|
<property name="tokens"
|
||||||
value="METHOD_DEF, CTOR_DEF, CLASS_DEF, LITERAL_IF, LITERAL_ELSE, LITERAL_FOR, LITERAL_WHILE, LITERAL_DO"/>
|
value="METHOD_DEF, CTOR_DEF, CLASS_DEF, LITERAL_IF, LITERAL_ELSE, LITERAL_FOR, LITERAL_WHILE, LITERAL_DO, LITERAL_TRY, LITERAL_CATCH"/>
|
||||||
</module>
|
</module>
|
||||||
|
|
||||||
<!-- 8. Magic numbers: disallow literal numbers (except allowed ones) -->
|
<!-- 8. Magic numbers: disallow literal numbers (except allowed ones) -->
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue