aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Ivanov <ivanov-jr@mail.ru>2017-09-04 11:16:31 -0700
committerRoman Ivanov <ivanov-jr@mail.ru>2017-09-04 11:16:31 -0700
commitdeee9dcdf1feb0bad62df4ee34a1a2ceb945a684 (patch)
tree0df397fc3131c9fe31fe108b0aa542c9865c1ab2
parent546bae162b3e3d59cc53ff6e1f3cc0d8983e3692 (diff)
downloadcheckstyle-deee9dcdf1feb0bad62df4ee34a1a2ceb945a684.tar.gz
Issue #4682: fix NonusedProperty violation by extending suppress in scope
-rwxr-xr-x.ci/idea_inspection.sh4
-rw-r--r--config/idea.properties2
-rw-r--r--config/intellij-idea-inspection-scope.xml2
3 files changed, 4 insertions, 4 deletions
diff --git a/.ci/idea_inspection.sh b/.ci/idea_inspection.sh
index 545c58aed..6f40b9a9b 100755
--- a/.ci/idea_inspection.sh
+++ b/.ci/idea_inspection.sh
@@ -44,9 +44,9 @@ IDEA_OUTPUT=`exec "$IDEA_LOCATION" inspect $PROJECT_DIR $INSPECTIONS_PATH $RESUL
echo $IDEA_OUTPUT
echo "Checking results ..."
-if [[ $(grep "problems" $RESULTS_DIR/* --exclude="UnusedProperty.xml" --exclude="RedundantSuppression.xml" | cat | wc -l ) > 0 ]]; then
+if [[ $(grep "problems" $RESULTS_DIR/* --exclude="RedundantSuppression.xml" | cat | wc -l ) > 0 ]]; then
echo "There are inspection problems. Review results at $RESULTS_DIR folder. Files:"
- grep -l "problems" $RESULTS_DIR/* --exclude="UnusedProperty.xml" --exclude="RedundantSuppression.xml"
+ grep -l "problems" $RESULTS_DIR/* --exclude="RedundantSuppression.xml"
exit 1;
else
echo "Inpection did not found any problems"
diff --git a/config/idea.properties b/config/idea.properties
index b44eac4d5..ba9dedec5 100644
--- a/config/idea.properties
+++ b/config/idea.properties
@@ -1 +1 @@
-idea.exclude.patterns=src/test/resources/**;src/site/resources/js/google-analytics.js;src/test/java/com/puppycrawl/tools/checkstyle/checks/javadoc/ParseTreeBuilder.java;src/test/java/com/puppycrawl/tools/checkstyle/grammars/javadoc/ParseTreeBuilder.java;
+idea.exclude.patterns=src/test/resources/**;src/site/resources/js/google-analytics.js;src/test/java/com/puppycrawl/tools/checkstyle/checks/javadoc/ParseTreeBuilder.java;src/test/java/com/puppycrawl/tools/checkstyle/grammars/javadoc/ParseTreeBuilder.java;config/idea.properties
diff --git a/config/intellij-idea-inspection-scope.xml b/config/intellij-idea-inspection-scope.xml
index ae5f878f8..f04bdb482 100644
--- a/config/intellij-idea-inspection-scope.xml
+++ b/config/intellij-idea-inspection-scope.xml
@@ -1,4 +1,4 @@
<!-- ATTENTION: this file is not used by TeamCity, all excludes should be specified in build configuration -->
<component name="DependencyValidationManager">
- <scope name="Checkstyle Inspection Scope" pattern="!file:target//*&amp;&amp;!file:src/test/resources*//**&amp;&amp;!file:src/it/resources*//**&amp;&amp;!file:src/test/java/com/puppycrawl/tools/checkstyle/grammars/javadoc/ParseTreeBuilder.java&amp;&amp;!file:src/site/resources/js/google-analytics.js"/>
+ <scope name="Checkstyle Inspection Scope" pattern="!file:target//*&amp;&amp;!file:src/test/resources*//**&amp;&amp;!file:src/it/resources*//**&amp;&amp;!file:src/test/java/com/puppycrawl/tools/checkstyle/grammars/javadoc/ParseTreeBuilder.java&amp;&amp;!file:src/site/resources/js/google-analytics.js&amp;&amp;!file:config/idea.properties"/>
</component>