summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorByteHamster <info@bytehamster.com>2020-03-18 20:13:09 +0100
committerByteHamster <info@bytehamster.com>2020-03-18 20:17:51 +0100
commit9e99b81f1ea14fb6909f80faa02d6a74c98e4fdd (patch)
tree7aa8a74f17934452151c5fae22e2f82286cf494a /config
parentdd5234cd2f91f30947cdbe7c60a47b4a01a4879c (diff)
downloadAntennaPod-9e99b81f1ea14fb6909f80faa02d6a74c98e4fdd.zip
Enabled more checkstyle rules
Diffstat (limited to 'config')
-rw-r--r--config/checkstyle/checkstyle.xml16
1 files changed, 16 insertions, 0 deletions
diff --git a/config/checkstyle/checkstyle.xml b/config/checkstyle/checkstyle.xml
index 04c841b3b..d36c1585a 100644
--- a/config/checkstyle/checkstyle.xml
+++ b/config/checkstyle/checkstyle.xml
@@ -33,8 +33,14 @@
<property name="tokens"
value="LITERAL_TRY, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE, LITERAL_SWITCH"/>
</module>
+ <module name="RightCurly">
+ <property name="id" value="RightCurlySame"/>
+ <property name="tokens"
+ value="LITERAL_TRY, LITERAL_CATCH, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE, LITERAL_DO"/>
+ </module>
<module name="OneStatementPerLine"/>
<module name="MultipleVariableDeclarations"/>
+ <module name="ArrayTypeStyle"/>
<module name="FallThrough"/>
<module name="UpperEll"/>
<module name="ModifierOrder"/>
@@ -74,6 +80,11 @@
<message key="name.invalidPattern"
value="Type name ''{0}'' must match pattern ''{1}''."/>
</module>
+ <module name="LambdaParameterName">
+ <property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
+ <message key="name.invalidPattern"
+ value="Lambda parameter name ''{0}'' must match pattern ''{1}''."/>
+ </module>
<module name="CatchParameterName">
<property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
<message key="name.invalidPattern"
@@ -121,6 +132,11 @@
<property name="tokens" value="VARIABLE_DEF"/>
<property name="allowSamelineMultipleAnnotations" value="true"/>
</module>
+ <module name="AtclauseOrder">
+ <property name="tagOrder" value="@param, @return, @throws, @deprecated"/>
+ <property name="target"
+ value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, METHOD_DEF, CTOR_DEF, VARIABLE_DEF"/>
+ </module>
<module name="MethodName">
<property name="format" value="^[a-z][a-z0-9][a-zA-Z0-9_]*$"/>
<message key="name.invalidPattern"