diff options
author | rnveach <rveach02@gmail.com> | 2016-07-31 10:36:59 -0400 |
---|---|---|
committer | Roman Ivanov <romani@users.noreply.github.com> | 2016-10-22 15:53:10 -0700 |
commit | fbaabe83cf78bcaf563443a3fb866931239eb15b (patch) | |
tree | 7ea81c1ae0c4b8f9d72b5cf3fabf782643f2e70b /config | |
parent | e163d249091894056fde46a1c85fcf33d09fbd6a (diff) | |
download | checkstyle-fbaabe83cf78bcaf563443a3fb866931239eb15b.tar.gz |
Issue #2866: added before execution and exclusion file filters
Diffstat (limited to 'config')
-rw-r--r-- | config/checkstyle_checks.xml | 3 | ||||
-rw-r--r-- | config/pmd.xml | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/config/checkstyle_checks.xml b/config/checkstyle_checks.xml index 9f6d7289c..0529f55ce 100644 --- a/config/checkstyle_checks.xml +++ b/config/checkstyle_checks.xml @@ -18,6 +18,9 @@ <property name="fileExtensions" value="java, properties, xml, g, g4"/> + <!-- BeforeExecutionFileFilters --> + <module name="BeforeExecutionExclusionFileFilter" /> + <!-- Filters --> <module name="SeverityMatchFilter"> <!-- report all violations except ignore --> diff --git a/config/pmd.xml b/config/pmd.xml index a91e36620..7776103f5 100644 --- a/config/pmd.xml +++ b/config/pmd.xml @@ -43,6 +43,12 @@ <property name="violationSuppressXPath" value="//MethodDeclaration[@Name='isNotRelevantSituation' and ../../..[@Image='WhitespaceAroundCheck']] | //MethodDeclaration[@Name='validateCli' and ../../..[@Image='Main']] | //ClassOrInterfaceDeclaration[@Image='JavadocMethodCheck' or @Image='JavadocStyleCheck']"/> </properties> </rule> + <rule ref="rulesets/java/codesize.xml/TooManyFields"> + <properties> + <!-- Unable to split fields out of class. --> + <property name="violationSuppressXPath" value="//ClassOrInterfaceDeclaration[@Image='Checker']"/> + </properties> + </rule> <rule ref="rulesets/java/codesize.xml/TooManyMethods"> <properties> <property name="maxmethods" value="20"/> |