Restore import-control checkstyle

Restore checkstyle import control and fix a few violations in the
process.

Closes gh-14660
pull/14583/merge
Phillip Webb 6 years ago
parent 63b64b4efa
commit 3ff20b2440

@ -53,6 +53,7 @@
<configLocation>src/checkstyle/checkstyle.xml</configLocation>
<suppressionsLocation>src/checkstyle/checkstyle-suppressions.xml</suppressionsLocation>
<includeTestSourceDirectory>true</includeTestSourceDirectory>
<propertyExpansion>main.basedir=${main.basedir}</propertyExpansion>
</configuration>
<goals>
<goal>check</goal>

@ -12,7 +12,7 @@
<name>Spring Boot Build</name>
<description>Spring Boot Build</description>
<properties>
<main.basedir>${basedir}/../..</main.basedir>
<main.basedir>${basedir}/..</main.basedir>
</properties>
<modules>
<module>spring-boot-dependencies</module>

@ -31,6 +31,7 @@
</developer>
</developers>
<properties>
<main.basedir>${basedir}/../..</main.basedir>
<!-- Dependency versions -->
<activemq.version>5.15.6</activemq.version>
<antlr2.version>2.7.7</antlr2.version>

@ -14,6 +14,7 @@
<description>Parent pom providing dependency and plugin management for applications
built with Maven</description>
<properties>
<main.basedir>${basedir}/../../..</main.basedir>
<java.version>1.8</java.version>
<resource.delimiter>@</resource.delimiter> <!-- delimiter that doesn't clash with Spring ${} placeholders -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

@ -16,7 +16,6 @@
package org.springframework.boot.web.reactive.filter;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.core.Ordered;
import org.springframework.web.filter.reactive.HiddenHttpMethodFilter;
@ -32,8 +31,7 @@ public class OrderedHiddenHttpMethodFilter extends HiddenHttpMethodFilter
/**
* The default order is high to ensure the filter is applied before Spring Security.
*/
public static final int DEFAULT_ORDER = FilterRegistrationBean.REQUEST_WRAPPER_FILTER_MAX_ORDER
- 10000;
public static final int DEFAULT_ORDER = -10000;
private int order = DEFAULT_ORDER;

@ -11,5 +11,11 @@
<property name="illegalClasses"
value="^reactor\.core\.support\.Assert" />
</module>
<module
name="com.puppycrawl.tools.checkstyle.checks.imports.ImportControlCheck">
<property name="file"
value="${main.basedir}/src/checkstyle/import-control.xml" />
<property name="path" value="^.*[\\/]src[\\/]main[\\/].*$" />
</module>
</module>
</module>

@ -5,12 +5,12 @@
<subpackage name="autoconfigure">
<subpackage name="web">
<allow pkg="org.springframework.boot.web.server" />
<allow pkg="org.springframework.boot.web.servlet.server" />
<disallow pkg="org.springframework.boot.web" />
<disallow pkg="org.springframework.web.servlet" />
<disallow pkg="org.springframework.web.reactive" />
<disallow pkg="javax.servlet" />
<allow pkg="org.springframework.boot.web.server" />
<allow pkg="org.springframework.boot.web.servlet.server" />
<subpackage name="client">
<allow pkg="org.springframework.boot.web.client" />
</subpackage>

Loading…
Cancel
Save