Skip to content

Commit

Permalink
Updated checkstyle resources
Browse files Browse the repository at this point in the history
Changed rules and suppressions used by checkstyle to enforce more strict whitespace rules

Signed-off-by: Jasper Berton <jasper.berton@team.blue>
  • Loading branch information
JasperB-TeamBlue committed Oct 29, 2024
1 parent bd8e203 commit aeb246f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@
<suppress checks="IllegalType" files="ConvergenceScheduleTest.java"/>
<suppress checks="IllegalType" files="AbstractBackendBaseTest.java"/>

<!-- Visually better with multiple spaces -->
<suppress checks="SingleSpaceSeparator" files="NetworkStatisticsBuilderTest.java"/>

<!-- Most of the classes in the authentication package aren't used in the
GWT client, and those that are used have special versions or custom
field serializers to overcome the GWT serialization limitations. All
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
</module>
<module name="UniqueProperties"/>
<module name="TreeWalker">

<!-- Built-in checks -->
<module name="AnnotationLocation" />
<module name="AnnotationUseStyle" />
Expand Down Expand Up @@ -68,6 +67,7 @@
<module name="RedundantImport"/>
<module name="RightCurly" />
<module name="SimplifyBooleanExpression"/>
<module name="SingleSpaceSeparator"/>
<module name="StringLiteralEquality"/>
<module name="SuppressionXpathSingleFilter">
<property name="checks" value="IllegalType"/>
Expand All @@ -77,9 +77,8 @@
<module name="UnnecessaryParentheses"/>
<module name="UnusedImports"/>
<module name="UpperEll"/>
<module name="WhitespaceAfter">
<property name="tokens" value="COMMA"/>
</module>
<module name="WhitespaceAfter"/>
<module name="WhitespaceAround"/>

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

0 comments on commit aeb246f

Please sign in to comment.