Add nohttp checkstyle rule

Closes gh-16682
This commit is contained in:
Phillip Webb
2019-06-03 23:51:08 -07:00
parent e79c2cc8a7
commit e61f7a33a7
5 changed files with 25 additions and 3 deletions

View File

@@ -20,6 +20,7 @@
<main.basedir>${basedir}/..</main.basedir>
<java.version>1.8</java.version>
<spring-javaformat.version>0.0.9</spring-javaformat.version>
<nohttp-checkstyle.version>0.0.1.RELEASE</nohttp-checkstyle.version>
<disable.checks>false</disable.checks>
</properties>
<modules>
@@ -155,6 +156,11 @@
<artifactId>spring-javaformat-checkstyle</artifactId>
<version>${spring-javaformat.version}</version>
</dependency>
<dependency>
<groupId>io.spring.nohttp</groupId>
<artifactId>nohttp-checkstyle</artifactId>
<version>${nohttp-checkstyle.version}</version>
</dependency>
</dependencies>
<executions>
<execution>
@@ -165,6 +171,8 @@
<configLocation>../spring-boot-parent/src/checkstyle/checkstyle.xml</configLocation>
<suppressionsLocation>../spring-boot-parent/src/checkstyle/checkstyle-suppressions.xml</suppressionsLocation>
<includeTestSourceDirectory>true</includeTestSourceDirectory>
<propertyExpansion>main.basedir=${main.basedir}</propertyExpansion>
<resourceIncludes>**\/*.*</resourceIncludes>
</configuration>
<goals>
<goal>check</goal>