From 6b947f96b858809a63478ded59d513cd0282b1d2 Mon Sep 17 00:00:00 2001 From: Marcin Grzejszczak Date: Sat, 2 Feb 2019 11:36:12 +0100 Subject: [PATCH] Parametrized suppressions --- pom.xml | 9 +++++++-- .../src/checkstyle/checkstyle-suppressions.xml | 5 +++-- .../src/main/resources/checkstyle.xml | 2 +- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index 8f411a6f..f39e8e18 100644 --- a/pom.xml +++ b/pom.xml @@ -66,6 +66,10 @@ false false + false + + master + https://raw.githubusercontent.com/spring-cloud/spring-cloud-build/${spring-cloud-build-checkstyle.branch}/spring-cloud-build-tools/src/checkstyle/checkstyle-suppressions.xml @@ -333,10 +337,11 @@ limitations under the License. checkstyle.xml checkstyle-header.txt - checkstyle.build.directory=${project.build.directory} + checkstyle.build.directory=${project.build.directory} + checkstyle.suppressions.file=${checkstyle.suppressions.file} true - false + ${maven-checkstyle-plugin.includeTestSourceDirectory} ${maven-checkstyle-plugin.failsOnError} ${maven-checkstyle-plugin.failOnViolation} diff --git a/spring-cloud-build-tools/src/checkstyle/checkstyle-suppressions.xml b/spring-cloud-build-tools/src/checkstyle/checkstyle-suppressions.xml index fff85210..91dd7e87 100644 --- a/spring-cloud-build-tools/src/checkstyle/checkstyle-suppressions.xml +++ b/spring-cloud-build-tools/src/checkstyle/checkstyle-suppressions.xml @@ -3,7 +3,8 @@ "-//Puppy Crawl//DTD Suppressions 1.1//EN" "http://www.puppycrawl.com/dtds/suppressions_1_1.dtd"> - - + + + \ No newline at end of file diff --git a/spring-cloud-build-tools/src/main/resources/checkstyle.xml b/spring-cloud-build-tools/src/main/resources/checkstyle.xml index c6413df9..61573a72 100644 --- a/spring-cloud-build-tools/src/main/resources/checkstyle.xml +++ b/spring-cloud-build-tools/src/main/resources/checkstyle.xml @@ -5,7 +5,7 @@ - +