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