Skip to content

Commit 9f7c82e

Browse files
committed
DATAREST-1398 - Integrate nohttp tooling into CI build profile.
1 parent 374e590 commit 9f7c82e

File tree

3 files changed

+35
-2
lines changed

3 files changed

+35
-2
lines changed

pom.xml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,39 @@
8383

8484
</profile>
8585

86+
<profile>
87+
88+
<id>ci</id>
89+
90+
<build>
91+
<plugins>
92+
<plugin>
93+
<groupId>org.apache.maven.plugins</groupId>
94+
<artifactId>maven-checkstyle-plugin</artifactId>
95+
<configuration>
96+
<checkstyleRules>
97+
<module name="Checker">
98+
99+
<!-- Configure checker to use UTF-8 encoding -->
100+
<property name="charset" value="UTF-8"/>
101+
102+
<module name="io.spring.nohttp.checkstyle.check.NoHttpCheck">
103+
<!-- XML requires double escaping, config gets XML-processed twice -->
104+
<property name="whitelist"
105+
value="http://www\.querydsl\.com.*&amp;#10;http://stateless\.co.*&amp;#10;http://json-schema\.org.*&amp;#10;http://alps\.io.*"/>
106+
</module>
107+
</module>
108+
</checkstyleRules>
109+
<includes>**/*</includes>
110+
<excludes>.git/**/*,target/**/*,**/target/**/*,.idea/**/*,**/spring.schemas,**/*.svg,mvnw,mvnw.cmd,**/cassandra.yaml</excludes>
111+
<sourceDirectories>./</sourceDirectories>
112+
</configuration>
113+
</plugin>
114+
</plugins>
115+
</build>
116+
117+
</profile>
118+
86119
<profile>
87120
<id>snapshot</id>
88121

spring-data-rest-hal-browser/src/main/java/org/springframework/data/rest/webmvc/halbrowser/HalBrowserConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* https://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,

spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/StaticResourceProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* https://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,

0 commit comments

Comments
 (0)