summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorByteHamster <info@bytehamster.com>2019-09-24 11:12:35 +0200
committerByteHamster <info@bytehamster.com>2019-09-24 11:21:08 +0200
commitb7301ca3600cee93d25a81c07740812a42eaeff4 (patch)
treee924fbc30ca7eaaa7073191840a486fd1a59bef9 /config
parentc16fe7a7c9dc9c5682c2b9a36b52de59d7578ab1 (diff)
downloadAntennaPod-b7301ca3600cee93d25a81c07740812a42eaeff4.zip
Added checkstyle
Diffstat (limited to 'config')
-rw-r--r--config/checkstyle/checkstyle.xml28
1 files changed, 28 insertions, 0 deletions
diff --git a/config/checkstyle/checkstyle.xml b/config/checkstyle/checkstyle.xml
new file mode 100644
index 000000000..4bc3d0b51
--- /dev/null
+++ b/config/checkstyle/checkstyle.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0"?>
+<!DOCTYPE module PUBLIC
+ "-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
+ "https://checkstyle.org/dtds/configuration_1_3.dtd">
+<module name = "Checker">
+ <property name="charset" value="UTF-8"/>
+
+ <property name="severity" value="error"/>
+
+ <property name="fileExtensions" value="java, xml"/>
+
+ <module name="TreeWalker">
+ <module name="AvoidEscapedUnicodeCharacters">
+ <property name="allowEscapesForControlCharacters" value="true"/>
+ <property name="allowByTailComment" value="true"/>
+ <property name="allowNonPrintableEscapes" value="true"/>
+ </module>
+ <module name="AvoidStarImport"/>
+ <module name="OneTopLevelClass"/>
+ <module name="OneStatementPerLine"/>
+ <module name="ModifierOrder"/>
+ <module name="PackageName">
+ <property name="format" value="^[a-z]+(\.[a-z][a-z0-9]*)*$"/>
+ <message key="name.invalidPattern"
+ value="Package name ''{0}'' must match pattern ''{1}''."/>
+ </module>
+ </module>
+</module>