Skip to content

Commit 8f2087d

Browse files
committed
checkstyle.xml: add a RegexpSinglelineJava module
1 parent c4e32b9 commit 8f2087d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

config/checkstyle/checkstyle.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@
8383
<property name="tokens"
8484
value="LITERAL_DO, LITERAL_ELSE, LITERAL_FOR, LITERAL_IF, LITERAL_WHILE"/>
8585
</module>
86+
<module name="RegexpSinglelineJava">
87+
<property name="format" value="\{[ ]+\}"/>
88+
<property name="message" value="Empty blocks should have no spaces. Empty blocks
89+
may only be represented as '{}' when not part of a
90+
multi-block statement (4.1.3)"/>
91+
</module>
8692
<module name="RightCurly">
8793
<property name="id" value="RightCurlyAlone"/>
8894
<property name="option" value="alone"/>

0 commit comments

Comments
 (0)