Skip to content

Commit

Permalink
OGM-1001 Checkstyle rules: allow single line getters and setters
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanne committed Mar 27, 2016
1 parent 6376d0f commit dc29303
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/main/build-config/checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,19 @@

<module name="LeftCurly">
<property name="option" value="eol" />
<!-- not doing this for methods so we can allow single line getters/setters -->
<property name="tokens" value="INTERFACE_DEF, CLASS_DEF, ANNOTATION_DEF, ENUM_DEF, CTOR_DEF,
ENUM_CONSTANT_DEF, LITERAL_WHILE, LITERAL_TRY, LITERAL_CATCH, LITERAL_FINALLY,
LITERAL_SYNCHRONIZED, LITERAL_SWITCH, LITERAL_DO, LITERAL_IF, LITERAL_ELSE, LITERAL_FOR,
STATIC_INIT" />
</module>

<module name="RightCurly">
<property name="option" value="alone" />
<!-- not doing this for methods so we can allow single line getters/setters -->
<property name="tokens" value="LITERAL_TRY, LITERAL_CATCH, LITERAL_FINALLY, LITERAL_IF,
LITERAL_ELSE, CLASS_DEF, CTOR_DEF, LITERAL_FOR, LITERAL_WHILE, LITERAL_DO,
STATIC_INIT, INSTANCE_INIT" />
</module>

<module name="ParenPad">
Expand Down

0 comments on commit dc29303

Please sign in to comment.