Fetching contributors…
Cannot retrieve contributors at this time
89 lines (72 sloc) 3.35 KB
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.1//EN"
<!-- A set of Checkstyle rules that should be applied to non-legacy modules that should adhere to relatively strict
code style rules. -->
<module name="Checker">
<property name="severity" value="error"/>
<!-- Whitespace checks -->
<module name="FileTabCharacter"/>
<!-- Regex checks - -->
<module name="RegexpSingleline">
<property name="format" value="System\.(out|err)\.print"/>
<property name="message"
value="System.out.println and System.err.println are not allowed. Using logging instead."/>
<module name="RegexpSingleline">
<property name="format" value="\.printStackTrace\(\)"/>
<property name="message"
value="Calls to Throwable.printStackTrace() are not allowed. Log the exception instead."/>
Along with the FileContentsHolder module, allows for adding comments to source code to suppress checks.
<module name="SuppressionCommentFilter"/>
<module name="TreeWalker">
Along with the SuppressionCommentFilter module, allows for adding comments to source code to suppress checks.
<module name="FileContentsHolder"/>
<!-- Import checks - -->
<module name="UnusedImports"/>
<!-- Block checks - -->
<module name="LeftCurly">
<property name="option" value="eol"/>
<module name="RightCurly">
<property name="option" value="same"/>
<module name="NeedBraces"/>
<!-- Size checks - -->
<module name="LineLengthCheck">
<property name="max" value="120"/>
<property name="tabWidth" value="4"/>
<property name="ignorePattern" value="^import"/>
<!-- Metrics checks - -->
<module name="JavaNCSS">
<property name="methodMaximum" value="70"/>
<property name="classMaximum" value="500"/>
<module name="CyclomaticComplexity">
<property name="max" value="15"/>
<!--<module name="NPathComplexity">-->
<!--<property name="max" value="50"/>-->
<!-- Coding checks -->
<module name="EqualsHashCode"/>
<module name="SimplifyBooleanExpression"/>
<module name="SimplifyBooleanReturn"/>
<module name="StringLiteralEquality"/>
<module name="NestedIfDepth">
<property name="max" value="2"/>
<module name="NestedTryDepth">
<property name="max" value="2"/>
<module name="NoFinalizer"/>