Enable additional checkstyles for whitespace

* Enable checkstyle WhitespaceAround
* Enable checkstyle NoWhitespaceBefore
* Enable checkstyle MethodParamPad
master
Evan Harris 5 years ago committed by jvoisin
parent 86a5b8708d
commit f738819625
  1. 1
      airsonic-main/src/main/java/org/airsonic/player/service/search/IndexType.java
  2. 11
      checkstyle.xml

@ -72,7 +72,6 @@ public enum IndexType {
FieldNames.ARTIST), FieldNames.ARTIST),
boosts( boosts(
entry(FieldNames.ARTIST, 2F))), entry(FieldNames.ARTIST, 2F))),
; ;
@SafeVarargs @SafeVarargs

@ -31,11 +31,22 @@
<module name="EqualsHashCode"/> <module name="EqualsHashCode"/>
<module name="Indentation"/> <module name="Indentation"/>
<module name="InnerAssignment"/> <module name="InnerAssignment"/>
<module name="MethodParamPad"/>
<module name="NoWhitespaceBefore">
<property name="allowLineBreaks" value="true"/>
</module>
<module name="OneStatementPerLine"/> <module name="OneStatementPerLine"/>
<module name="ParenPadCheck"/> <module name="ParenPadCheck"/>
<module name="RedundantImport"/> <module name="RedundantImport"/>
<module name="StringLiteralEquality"/> <module name="StringLiteralEquality"/>
<module name="TypecastParenPad"/> <module name="TypecastParenPad"/>
<module name="UnusedImports"/> <module name="UnusedImports"/>
<module name="WhitespaceAround">
<property name="allowEmptyCatches" value="true"/>
<property name="allowEmptyConstructors" value="true"/>
<property name="allowEmptyLambdas" value="true"/>
<property name="allowEmptyMethods" value="true"/>
<property name="allowEmptyTypes" value="true"/>
</module>
</module> </module>
</module> </module>

Loading…
Cancel
Save