aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorvasilyeva <vasilyeva@rutarget.ru>2017-07-27 10:01:53 +0300
committerRoman Ivanov <romani@users.noreply.github.com>2017-07-27 05:54:50 -0700
commitb1b49751d38af0bf2476aea1f4595283615ab7de (patch)
tree75b6f6f47e56b48bbde602bc5123875c6b030115 /config
parent007f82bee298de789800113b582ec3adb1b53ea7 (diff)
downloadcheckstyle-b1b49751d38af0bf2476aea1f4595283615ab7de.tar.gz
Issue #4399: increase coverage of pitest-checkstyle main profile to 100%
Diffstat (limited to 'config')
-rw-r--r--config/pmd-main.xml7
-rw-r--r--config/suppressions.xml1
2 files changed, 8 insertions, 0 deletions
diff --git a/config/pmd-main.xml b/config/pmd-main.xml
index 70929fd85..7c05c7518 100644
--- a/config/pmd-main.xml
+++ b/config/pmd-main.xml
@@ -19,4 +19,11 @@
| //MethodDeclaration[@Name='getHashCodeBasedOnObjectContent' and ../../..[@Image='PropertyCacheFile']]"/>
</properties>
</rule>
+ <rule ref="rulesets/java/basic.xml/CollapsibleIfStatements">
+ <properties>
+ <!-- till https://github.com/hcoles/pitest/issues/377 -->
+ <property name="violationSuppressXPath" value="//MethodDeclaration[@Name='main' and ../../..[@Image='Main']]"/>
+ </properties>
+ </rule>
+
</ruleset>
diff --git a/config/suppressions.xml b/config/suppressions.xml
index 965bd0609..50f22baf7 100644
--- a/config/suppressions.xml
+++ b/config/suppressions.xml
@@ -49,6 +49,7 @@
<suppress checks="ExecutableStatementCount" files=".*GeneratedJavaTokenTypesTest\.java"/>
<suppress checks="JavaNCSS" files=".*GeneratedJavaTokenTypesTest\.java"/>
<suppress checks="ExecutableStatementCount" files=".*IllegalInstantiationCheckTest\.java"/>
+ <suppress checks="ExecutableStatementCount" files=".*Main\.java"/>
<suppress checks="." files=".*JavadocTokenTypes\.java"/>
<suppress checks="." files=".*ParseTreeBuilder\.java"/>