Skip to content

Commit

Permalink
Issue checkstyle#3184: Make hardcoded map with all module names that …
Browse files Browse the repository at this point in the history
…in checkstyle
  • Loading branch information
Vladlis committed Dec 19, 2016
1 parent 292d92b commit 0dc9c63
Show file tree
Hide file tree
Showing 4 changed files with 555 additions and 16 deletions.
10 changes: 8 additions & 2 deletions config/pmd.xml
Expand Up @@ -17,6 +17,11 @@
<exclude name="StdCyclomaticComplexity"/>
</rule>

<rule ref="rulesets/java/basic.xml/EmptyCatchBlock">
<properties>
<property name="allowCommentedBlocks" value="true"/>
</properties>
</rule>
<rule ref="rulesets/java/codesize.xml/CyclomaticComplexity">
<properties>
<property name="showClassesComplexity" value="false"/>
Expand Down Expand Up @@ -52,8 +57,9 @@
<rule ref="rulesets/java/codesize.xml/TooManyMethods">
<properties>
<property name="maxmethods" value="20"/>
<!-- Reducing the number of methods requires making excess hierarchy or duplicating code, or making existing methods too complex. -->
<property name="violationSuppressXPath" value="//ClassOrInterfaceDeclaration[@Image='RequireThisCheck']"/>
<!-- Reducing the number of methods in RequireThisCheck requires making excess hierarchy or duplicating code, or making existing methods too complex. -->
<!-- PackageObjectFactory has many boilerplate methods. -->
<property name="violationSuppressXPath" value="//ClassOrInterfaceDeclaration[@Image='RequireThisCheck' or @Image='PackageObjectFactory']"/>
</properties>
</rule>
<rule ref="rulesets/java/codesize.xml/ExcessiveClassLength">
Expand Down

0 comments on commit 0dc9c63

Please sign in to comment.