summaryrefslogtreecommitdiff
path: root/config/checkstyle/checkstyle.xml
diff options
context:
space:
mode:
authorByteHamster <info@bytehamster.com>2020-02-02 17:47:41 +0100
committerByteHamster <info@bytehamster.com>2020-02-02 17:48:30 +0100
commit8f08bd1f6da579658fba565a736a2823f55ca5d3 (patch)
treed6adf42fe719459512069ba7be347a90c156797e /config/checkstyle/checkstyle.xml
parentb2fb239853de79e9666f405599bd708f962c3177 (diff)
downloadAntennaPod-8f08bd1f6da579658fba565a736a2823f55ca5d3.zip
Enforce method names
Diffstat (limited to 'config/checkstyle/checkstyle.xml')
-rw-r--r--config/checkstyle/checkstyle.xml13
1 files changed, 10 insertions, 3 deletions
diff --git a/config/checkstyle/checkstyle.xml b/config/checkstyle/checkstyle.xml
index 140d3c33f..930db4c6b 100644
--- a/config/checkstyle/checkstyle.xml
+++ b/config/checkstyle/checkstyle.xml
@@ -4,10 +4,12 @@
"https://checkstyle.org/dtds/configuration_1_3.dtd">
<module name = "Checker">
<property name="charset" value="UTF-8"/>
+ <property name="severity" value="warning"/>
+ <property name="fileExtensions" value="java, properties, xml"/>
- <property name="severity" value="error"/>
-
- <property name="fileExtensions" value="java, xml"/>
+ <module name="SuppressionFilter">
+ <property name="file" value="suppressions.xml" />
+ </module>
<module name="TreeWalker">
<module name="OuterTypeFilename"/>
@@ -91,6 +93,11 @@
<property name="tokens" value="VARIABLE_DEF"/>
<property name="allowSamelineMultipleAnnotations" value="true"/>
</module>
+ <module name="MethodName">
+ <property name="format" value="^[a-z][a-z0-9][a-zA-Z0-9_]*$"/>
+ <message key="name.invalidPattern"
+ value="Method name ''{0}'' must match pattern ''{1}''."/>
+ </module>
<module name="SingleLineJavadoc">
<property name="ignoreInlineTags" value="false"/>
</module>