2014-02-14 18:13:51 +01:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!DOCTYPE module PUBLIC
|
2014-02-17 18:57:38 +01:00
|
|
|
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
|
|
|
|
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
|
2014-02-14 18:13:51 +01:00
|
|
|
<module name="Checker">
|
2014-02-17 18:57:38 +01:00
|
|
|
<module name="SuppressionFilter">
|
|
|
|
<property name="file" value="config/suppressions.xml"/>
|
|
|
|
</module>
|
2015-03-17 21:19:06 +01:00
|
|
|
<module name="SuppressionCommentFilter"/>
|
2014-02-17 18:57:38 +01:00
|
|
|
<module name="Header">
|
|
|
|
<property name="headerFile" value="config/header.txt"/>
|
|
|
|
<property name="ignoreLines" value="3"/>
|
|
|
|
<property name="fileExtensions" value="java"/>
|
|
|
|
</module>
|
2014-02-17 23:58:40 +01:00
|
|
|
<module name="NewlineAtEndOfFile">
|
|
|
|
<property name="lineSeparator" value="lf"/>
|
|
|
|
</module>
|
2014-02-20 13:38:12 +01:00
|
|
|
<module name="RegexpSingleline">
|
|
|
|
<property name="format" value="MXParser"/>
|
|
|
|
<property name="message" value="Must not use MXParser, use XmlPullParserFactory instead"/>
|
|
|
|
</module>
|
2015-03-17 11:33:02 +01:00
|
|
|
<module name="RegexpSingleline">
|
|
|
|
<property name="format" value="^\s+$"/>
|
|
|
|
<property name="message" value="Line containing only whitespace character(s)"/>
|
|
|
|
</module>
|
2015-03-17 21:19:06 +01:00
|
|
|
<module name="RegexpSingleline">
|
|
|
|
<property name="format" value="^ +\t+"/>
|
|
|
|
<property name="message" value="Line containing tab(s) after space"/>
|
|
|
|
</module>
|
2015-03-17 11:40:58 +01:00
|
|
|
<module name="RegexpSingleline">
|
2015-03-18 21:01:49 +01:00
|
|
|
<!--
|
|
|
|
Explaining the following Regex
|
|
|
|
|
|
|
|
^ \s* [\S && [^ \*/]]+ \s+ $
|
|
|
|
| | | | | +- End of Line (6)
|
|
|
|
| | | | +- At least one whitespace (5)
|
|
|
|
| | | +- At least one or more of the previous character class (4)
|
|
|
|
| | +- All non-whitespace characters except '*' and '/' (to exclude javadoc) (3)
|
|
|
|
| +- Zero or more space characters (2)
|
|
|
|
+- Start of Line (1)
|
|
|
|
|
|
|
|
Rationale:
|
|
|
|
Matches trailing whitespace (5) in lines containing at least one (4) non-whitespace character
|
|
|
|
that is not one of the characters used by javadoc (3).
|
|
|
|
-->
|
|
|
|
<property name="format" value="^\s*[\S&&[^\*/]]+\s+$"/>
|
2015-03-17 11:40:58 +01:00
|
|
|
<property name="message" value="Line containing trailing whitespace character(s)"/>
|
|
|
|
</module>
|
2014-02-14 18:13:51 +01:00
|
|
|
<module name="TreeWalker">
|
2015-03-17 21:19:06 +01:00
|
|
|
<module name="FileContentsHolder"/>
|
2014-02-17 18:57:38 +01:00
|
|
|
<module name="UnusedImports">
|
|
|
|
<property name="processJavadoc" value="true"/>
|
|
|
|
</module>
|
|
|
|
<module name="AvoidStarImport"/>
|
|
|
|
<module name="IllegalImport"/>
|
|
|
|
<module name="RedundantImport"/>
|
|
|
|
<module name="UpperEll"/>
|
|
|
|
<module name="ArrayTypeStyle"/>
|
|
|
|
<module name="GenericWhitespace"/>
|
|
|
|
<module name="EmptyStatement"/>
|
|
|
|
<module name="PackageDeclaration"/>
|
2015-03-17 21:19:06 +01:00
|
|
|
<module name="RegexpSinglelineJava">
|
|
|
|
<property name="format" value="printStackTrace"/>
|
|
|
|
<property name="message" value="Usage of printStackTrace"/>
|
|
|
|
<property name="ignoreComments" value="true"/>
|
|
|
|
</module>
|
|
|
|
<module name="RegexpSinglelineJava">
|
|
|
|
<property name="format" value="println"/>
|
|
|
|
<property name="message" value="Usage of println"/>
|
|
|
|
<property name="ignoreComments" value="true"/>
|
|
|
|
</module>
|
2014-02-14 18:13:51 +01:00
|
|
|
</module>
|
|
|
|
</module>
|