From 80eece2100c97ade07ce7825a0f577a2dd30eec0 Mon Sep 17 00:00:00 2001 From: Marcin Grzejszczak Date: Thu, 6 Jun 2019 13:39:51 +0200 Subject: [PATCH] Added nohttp checkstyle; fixes gh-134 --- pom.xml | 24 +++++++++++++++ .../src/checkstyle/nohttp-checkstyle.xml | 29 +++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 spring-cloud-build-tools/src/checkstyle/nohttp-checkstyle.xml diff --git a/pom.xml b/pom.xml index 58dd1208..f7fd6f40 100644 --- a/pom.xml +++ b/pom.xml @@ -83,9 +83,13 @@ https://raw.githubusercontent.com/spring-cloud/spring-cloud-build/${spring-cloud-build-checkstyle.branch}/spring-cloud-build-tools/src/checkstyle/checkstyle-suppressions.xml + + https://raw.githubusercontent.com/spring-cloud/spring-cloud-build/${spring-cloud-build-checkstyle.branch}/spring-cloud-build-tools/src/checkstyle/nohttp-checkstyle.xml + ${maven.multiModuleProjectDirectory}/src/checkstyle/checkstyle-suppressions.xml + 0.0.1.BUILD-SNAPSHOT @@ -406,6 +410,11 @@ spring-cloud-build-tools ${spring-cloud-build.version} + + io.spring.nohttp + nohttp-checkstyle + ${nohttp-checkstyle.version} + @@ -436,6 +445,21 @@ check + + no-http-checkstyle-validation + validate + true + + ${disable.checks} + ${checkstyle.nohttp.file} + **/* + **/.git/**/*,**/target/**/*,**/*.log + ./ + + + check + + diff --git a/spring-cloud-build-tools/src/checkstyle/nohttp-checkstyle.xml b/spring-cloud-build-tools/src/checkstyle/nohttp-checkstyle.xml new file mode 100644 index 00000000..681d37f9 --- /dev/null +++ b/spring-cloud-build-tools/src/checkstyle/nohttp-checkstyle.xml @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + \ No newline at end of file