summaryrefslogtreecommitdiff
path: root/config/checkstyle
diff options
context:
space:
mode:
authorByteHamster <info@bytehamster.com>2022-01-15 12:57:23 +0100
committerByteHamster <info@bytehamster.com>2022-01-15 12:57:23 +0100
commit9c01712276658728278f9ce965522855d6b74309 (patch)
treeb76390e614c56c68f046f2de1055ff56ba038359 /config/checkstyle
parentba17dd53f855ad55b2152325598a9e4adf9e9e28 (diff)
downloadAntennaPod-9c01712276658728278f9ce965522855d6b74309.zip
Move more checkstyle checks from 'new code' style to main style
Diffstat (limited to 'config/checkstyle')
-rw-r--r--config/checkstyle/checkstyle.xml7
-rw-r--r--config/checkstyle/suppressions.xml5
2 files changed, 12 insertions, 0 deletions
diff --git a/config/checkstyle/checkstyle.xml b/config/checkstyle/checkstyle.xml
index e23962381..8e82dd5e2 100644
--- a/config/checkstyle/checkstyle.xml
+++ b/config/checkstyle/checkstyle.xml
@@ -45,6 +45,9 @@
<module name="FallThrough"/>
<module name="UpperEll"/>
<module name="ModifierOrder"/>
+ <module name="EmptyLineSeparator">
+ <property name="allowNoEmptyLineBetweenFields" value="true"/>
+ </module>
<module name="SeparatorWrap">
<property name="id" value="SeparatorWrapDot"/>
<property name="tokens" value="DOT"/>
@@ -123,6 +126,7 @@
value="COMMA, SEMI, POST_INC, POST_DEC, DOT, ELLIPSIS, METHOD_REF"/>
<property name="allowLineBreaks" value="true"/>
</module>
+ <module name="ParenPad"/>
<module name="AnnotationLocation">
<property name="id" value="AnnotationLocationMostCases"/>
<property name="tokens"
@@ -146,6 +150,9 @@
<module name="SingleLineJavadoc">
<property name="ignoreInlineTags" value="false"/>
</module>
+ <module name="EmptyCatchBlock">
+ <property name="exceptionVariableName" value="expected"/>
+ </module>
<module name="NestedIfDepth">
<property name="max" value="4"/>
</module>
diff --git a/config/checkstyle/suppressions.xml b/config/checkstyle/suppressions.xml
index 8ca46df67..612d582bd 100644
--- a/config/checkstyle/suppressions.xml
+++ b/config/checkstyle/suppressions.xml
@@ -4,4 +4,9 @@
"http://www.puppycrawl.com/dtds/suppressions_1_1.dtd">
<suppressions>
<suppress checks="MethodName" files="core/src/test/java/android/util/Log.java" />
+ <suppress checks="LineLength" files="strings.xml"/>
+
+ <suppress checks="." files="[\\/]generated-sources[\\/]"/>
+ <suppress checks="." files="[\\/]build[\\/]"/>
+ <suppress checks="." files="[\\/].idea[\\/]"/>
</suppressions>