Skip to content

Commit 4a49a79

Browse files
JasperB-TeamBluesandrobonazzola
authored andcommitted
Updated checkstyle resources
Changed rules and suppressions used by checkstyle to enforce more strict whitespace rules. Signed-off-by: Jasper Berton <[email protected]>
1 parent 4f0cf78 commit 4a49a79

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

build-tools-root/checkstyles/src/main/resources/checkstyle-suppressions.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@
9292
<suppress checks="IllegalType" files="ConvergenceScheduleTest.java"/>
9393
<suppress checks="IllegalType" files="AbstractBackendBaseTest.java"/>
9494

95+
<!-- Visually better with multiple spaces -->
96+
<suppress checks="SingleSpaceSeparator" files="NetworkStatisticsBuilderTest.java"/>
97+
9598
<!-- Most of the classes in the authentication package aren't used in the
9699
GWT client, and those that are used have special versions or custom
97100
field serializers to overcome the GWT serialization limitations. All

build-tools-root/checkstyles/src/main/resources/checkstyle.xml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
</module>
2222
<module name="UniqueProperties"/>
2323
<module name="TreeWalker">
24-
2524
<!-- Built-in checks -->
2625
<module name="AnnotationLocation" />
2726
<module name="AnnotationUseStyle" />
@@ -68,6 +67,7 @@
6867
<module name="RedundantImport"/>
6968
<module name="RightCurly" />
7069
<module name="SimplifyBooleanExpression"/>
70+
<module name="SingleSpaceSeparator"/>
7171
<module name="StringLiteralEquality"/>
7272
<module name="SuppressionXpathSingleFilter">
7373
<property name="checks" value="IllegalType"/>
@@ -77,9 +77,8 @@
7777
<module name="UnnecessaryParentheses"/>
7878
<module name="UnusedImports"/>
7979
<module name="UpperEll"/>
80-
<module name="WhitespaceAfter">
81-
<property name="tokens" value="COMMA"/>
82-
</module>
80+
<module name="WhitespaceAfter"/>
81+
<module name="WhitespaceAround"/>
8382

8483
<!-- oVirt checks -->
8584
<module name="org.ovirt.checkstyle.checks.DiamondOperatorCheck"/>

0 commit comments

Comments
 (0)