aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvasilyeva <vasilyeva@rutarget.ru>2017-12-27 22:45:46 +0300
committerRoman Ivanov <romani@users.noreply.github.com>2017-12-27 15:37:19 -0800
commitcbbcbad89962eb6727e57ad9baa9cd0ac0e19e72 (patch)
tree2add23e58e672c739dbc6725d66fc3630f339c61
parentd5c3d379ad0d6e0a1511162075981806d2ab2d8f (diff)
downloadcheckstyle-cbbcbad89962eb6727e57ad9baa9cd0ac0e19e72.tar.gz
Issue #4675: fix last mutation
-rw-r--r--pom.xml2
-rw-r--r--shippable.yml7
-rw-r--r--src/main/java/com/puppycrawl/tools/checkstyle/checks/TranslationCheck.java1
3 files changed, 2 insertions, 8 deletions
diff --git a/pom.xml b/pom.xml
index 990df694b..1c2ed3375 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1729,7 +1729,7 @@
<param>com.puppycrawl.tools.checkstyle.checks.UpperEllCheckTest</param>
</targetTests>
<coverageThreshold>100</coverageThreshold>
- <mutationThreshold>99</mutationThreshold>
+ <mutationThreshold>100</mutationThreshold>
<timeoutFactor>${pitest.plugin.timeout.factor}</timeoutFactor>
<timeoutConstant>${pitest.plugin.timeout.constant}</timeoutConstant>
<threads>${pitest.plugin.threads}</threads>
diff --git a/shippable.yml b/shippable.yml
index 47cb3b31d..94f2484d1 100644
--- a/shippable.yml
+++ b/shippable.yml
@@ -14,7 +14,7 @@ env:
- PROFILE="-Ppitest-checks-regexp,no-validations"; POST_ACTION=check_survived_uncovered
- PROFILE="-Ppitest-checks-sizes,no-validations"; POST_ACTION=check_survived_uncovered
- PROFILE="-Ppitest-checks-whitespace,no-validations"; POST_ACTION=check_survived
- - PROFILE="-Ppitest-checks-misc,no-validations"; POST_ACTION=check_survived_misc
+ - PROFILE="-Ppitest-checks-misc,no-validations"; POST_ACTION=check_survived_uncovered
- PROFILE="-Ppitest-checks-blocks,no-validations"; POST_ACTION=check_survived_blocks
- PROFILE="-Ppitest-checks-coding,no-validations"; POST_ACTION=check_survived_coding
- PROFILE="-Ppitest-checks-design,no-validations"; POST_ACTION=check_survived_uncovered
@@ -64,11 +64,6 @@ build:
echo "Survived items found in reports, build will be failed"
exit 1
fi
- if [[ $POST_ACTION == 'check_survived_misc' && $(grep -RE "class='survived'" --exclude="TranslationCheck.*" target/ | cat | wc -l) > 0 ]]; then
- echo "Survived items:"$(grep -RE "class='survived'" --exclude="TranslationCheck.*" target/ | cat)
- echo "Survived items found in reports, build will be failed"
- exit 1
- fi
if [[ $POST_ACTION == 'check_survived_blocks' && $(grep -RE "class='survived'" --exclude="LeftCurlyCheck.*" target/ | cat | wc -l) > 0 ]]; then
echo "Survived items:"$(grep -RE "class='survived'" --exclude="LeftCurlyCheck.*" target/ | cat)
echo "Survived items found in reports, build will be failed"
diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/checks/TranslationCheck.java b/src/main/java/com/puppycrawl/tools/checkstyle/checks/TranslationCheck.java
index 35aa20c14..c52d109e4 100644
--- a/src/main/java/com/puppycrawl/tools/checkstyle/checks/TranslationCheck.java
+++ b/src/main/java/com/puppycrawl/tools/checkstyle/checks/TranslationCheck.java
@@ -327,7 +327,6 @@ public class TranslationCheck extends AbstractFileSetCheck {
private void logMissingTranslation(String filePath, String fileName) {
log(0, MSG_KEY_MISSING_TRANSLATION_FILE, fileName);
fireErrors(filePath);
- getMessageDispatcher().fireFileFinished(filePath);
}
/**