<propertyname="message"value="Don't use StringBuilder.append(String) when you can use StringBuilder.append(char). Solution: Replace double quotes of append's argument with single quotes."/>
</module>
<!-- Whitespace only lines -->
<modulename="RegexpSingleline">
<propertyname="format"value="^\s+$"/>
<propertyname="message"value="Line containing only whitespace character(s)"/>
</module>
<!-- Mixed spaces/tabs -->
<modulename="RegexpSingleline">
<!-- We use {2,} instead of + here to address the typical case where a file was written
with tabs but javadoc is causing '\t *' -->
<propertyname="format"value="^\t+ {2,}"/>
<propertyname="message"value="Line containing space(s) after tab(s)"/>
</module>
<!-- Trailing whitespaces -->
<modulename="RegexpSingleline">
<!--
Explaining the following Regex
\s+ $
| +- End of Line (2)
+- At least one whitespace (1)
Rationale:
Matches trailing whitespace (2) in lines containing at least one (1) non-whitespace character
<propertyname="message"value="Comment start ('//') followed by non-space character. You would not continue after a punctuation without a space, would you?"/>
</module>
<modulename="JavadocPackage">
</module>
<modulename="TreeWalker">
<modulename="SuppressionCommentFilter"/>
<modulename="FinalClass"/>
<modulename="UnusedImports">
<propertyname="processJavadoc"value="true"/>
</module>
<modulename="AvoidStarImport"/>
<modulename="IllegalImport"/>
<modulename="RedundantImport"/>
<modulename="RedundantModifier"/>
<modulename="ModifierOrder"/>
<modulename="UpperEll"/>
<modulename="ArrayTypeStyle"/>
<modulename="GenericWhitespace"/>
<modulename="EmptyStatement"/>
<modulename="PackageDeclaration"/>
<modulename="LeftCurly"/>
<!-- printStackTrace -->
<modulename="RegexpSinglelineJava">
<propertyname="format"value="printStackTrace"/>
<propertyname="message"value="Usage of printStackTrace. Either rethrow exception, or log using Logger."/>
<propertyname="ignoreComments"value="true"/>
</module>
<!-- println -->
<modulename="RegexpSinglelineJava">
<propertyname="format"value="println"/>
<propertyname="message"value="Usage of println"/>
<propertyname="ignoreComments"value="true"/>
</module>
<!-- Spaces instead of Tabs -->
<modulename="RegexpSinglelineJava">
<propertyname="format"value="^\t+"/>
<propertyname="message"value="Indent must not use tab characters. Use space instead."/>