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 <[email protected]>
  • Loading branch information
JasperB-TeamBlue authored and sandrobonazzola committed Dec 6, 2024
1 parent 4f0cf78 commit 4a49a79
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 4a49a79

Please sign in to comment.