Skip to content

Commit

Permalink
Issue checkstyle#7805: Resolve Pitest Issues - CustomImportOrderCheck…
Browse files Browse the repository at this point in the history
… (4)
  • Loading branch information
malinthar authored and jokowncode committed Mar 22, 2020
1 parent f144c54 commit cd6402b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 0 additions & 2 deletions .ci/pitest.sh
Expand Up @@ -71,9 +71,7 @@ pitest-header)
pitest-imports)
mvn -e -P$1 clean test org.pitest:pitest-maven:mutationCoverage;
declare -a ignoredItems=(
"CustomImportOrderCheck.java.html:<td class='covered'><pre><span class='survived'> else if (customImportOrderRules.contains(SAME_PACKAGE_RULE_GROUP)) {</span></pre></td></tr>"
"CustomImportOrderCheck.java.html:<td class='covered'><pre><span class='survived'> if (bestMatch.group.equals(NON_GROUP_RULE_GROUP)) {</span></pre></td></tr>"
"CustomImportOrderCheck.java.html:<td class='covered'><pre><span class='survived'> if (customImportOrderRules.contains(SAME_PACKAGE_RULE_GROUP)) {</span></pre></td></tr>"
"IllegalImportCheck.java.html:<td class='covered'><pre><span class='survived'> if (regexp) {</span></pre></td></tr>"
"IllegalImportCheck.java.html:<td class='covered'><pre><span class='survived'> if (!result &#38;&#38; illegalClasses != null) {</span></pre></td></tr>"
"IllegalImportCheck.java.html:<td class='covered'><pre><span class='survived'> if (!result) {</span></pre></td></tr>"
Expand Down
Expand Up @@ -525,10 +525,8 @@ public void beginTree(DetailAST rootAST) {
@Override
public void visitToken(DetailAST ast) {
if (ast.getType() == TokenTypes.PACKAGE_DEF) {
if (customImportOrderRules.contains(SAME_PACKAGE_RULE_GROUP)) {
samePackageDomainsRegExp = createSamePackageRegexp(
samePackageMatchingDepth, ast);
}
samePackageDomainsRegExp = createSamePackageRegexp(
samePackageMatchingDepth, ast);
}
else {
final String importFullPath = getFullImportIdent(ast);
Expand Down

0 comments on commit cd6402b

Please sign in to comment.