Skip to content

Commit

Permalink
build: Added WhitespaceAround and WhitespaceAfter rules to Checkstyle…
Browse files Browse the repository at this point in the history
… config (#625)
  • Loading branch information
Oliver-Loeffler authored Mar 28, 2023
1 parent c51d149 commit 95d9fdf
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@

<module name="TreeWalker">
<property name="tabWidth" value="4"/>

<module name="GenericWhitespace"/>
<module name="EmptyForInitializerPad"/>
<module name="EmptyForIteratorPad"/>

<module name="NoWhitespaceBefore"/>
<module name="NoWhitespaceBeforeCaseDefaultColon"/>
<module name="NoWhitespaceBefore">
Expand All @@ -41,10 +41,10 @@
<module name="EmptyLineSeparator">
<property name="tokens" value="IMPORT"/>
<property name="tokens" value="STATIC_IMPORT"/>
<property name="tokens" value="INTERFACE_DEF"/>
<property name="tokens" value="INSTANCE_INIT"/>
<property name="tokens" value="RECORD_DEF"/>
<property name="allowNoEmptyLineBetweenFields" value="false"/>
<property name="tokens" value="INTERFACE_DEF"/>
<property name="tokens" value="INSTANCE_INIT"/>
<property name="tokens" value="RECORD_DEF"/>
<property name="allowNoEmptyLineBetweenFields" value="false"/>
<property name="allowMultipleEmptyLinesInsideClassMembers" value="true"/>
</module>

Expand All @@ -62,7 +62,7 @@
<property name="tokens" value="INDEX_OP"/>
<property name="tokens" value="METHOD_REF"/>
</module>

<module name="EmptyBlock">
<property name="tokens" value="LITERAL_CATCH"/>
<property name="tokens" value="LITERAL_DEFAULT"/>
Expand All @@ -80,7 +80,9 @@
<property name="tokens" value="LITERAL_WHILE"/>
<property name="option" value="text"/>
</module>

<module name="OperatorWrap"/>
<module name="WhitespaceAfter"/>
<module name="WhitespaceAround"/>
</module>
</module>

0 comments on commit 95d9fdf

Please # to comment.