File tree Expand file tree Collapse file tree 5 files changed +25
-3
lines changed Expand file tree Collapse file tree 5 files changed +25
-3
lines changed Original file line number Diff line number Diff line change 1717 <url >https://www.spring.io</url >
1818 </organization >
1919 <properties >
20- <main .basedir>..</main .basedir>
20+ <main .basedir>${basedir} / ..</main .basedir>
2121 <disable .checks>false</disable .checks>
2222 <java .version>1.6</java .version>
2323 <aether .version>1.0.2.v20150114</aether .version>
2424 <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
2525 <project .reporting.outputEncoding>UTF-8</project .reporting.outputEncoding>
2626 <maven .version>3.1.1</maven .version>
2727 <spring-javaformat .version>0.0.9</spring-javaformat .version>
28+ <nohttp-checkstyle .version>0.0.1.RELEASE</nohttp-checkstyle .version>
2829 </properties >
2930 <scm >
3031 <url >https://github.com/spring-projects/spring-boot</url >
318319 <artifactId >spring-javaformat-checkstyle</artifactId >
319320 <version >${spring-javaformat.version} </version >
320321 </dependency >
322+ <dependency >
323+ <groupId >io.spring.nohttp</groupId >
324+ <artifactId >nohttp-checkstyle</artifactId >
325+ <version >${nohttp-checkstyle.version} </version >
326+ </dependency >
321327 </dependencies >
322328 </plugin >
323329 <plugin >
533539 <configLocation >src/checkstyle/checkstyle.xml</configLocation >
534540 <suppressionsLocation >src/checkstyle/checkstyle-suppressions.xml</suppressionsLocation >
535541 <includeTestSourceDirectory >true</includeTestSourceDirectory >
542+ <propertyExpansion >main.basedir=${main.basedir} </propertyExpansion >
543+ <resourceIncludes >**\/*.*</resourceIncludes >
536544 </configuration >
537545 <goals >
538546 <goal >check</goal >
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" ?>
22<!DOCTYPE suppressions PUBLIC
3- "-//Checkstyle//DTD SuppressionFilter Configuration 1.2//EN"
4- "https://checkstyle.org/dtds/suppressions_1_2.dtd">
3+ "-//Checkstyle//DTD SuppressionFilter Configuration 1.2//EN"
4+ "https://checkstyle.org/dtds/suppressions_1_2.dtd">
55<suppressions >
6+ <suppress files =" [\\/]target[\\/]" checks =" .*" />
7+ <suppress files =" .+\.[jar|git|ico|p12]" checks =" .*" />
68 <suppress files =" SpringApplicationTests\.java" checks =" FinalClass" />
79 <suppress files =" .+Configuration\.java" checks =" HideUtilityClassConstructor" />
810 <suppress files =" .+Application\.java" checks =" HideUtilityClassConstructor" />
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" ?>
22<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.2//EN" "https://checkstyle.org/dtds/configuration_1_2.dtd">
33<module name =" com.puppycrawl.tools.checkstyle.Checker" >
4+ <module name =" io.spring.nohttp.checkstyle.check.NoHttpCheck" >
5+ <property name =" whitelistFileName" value =" ${main.basedir}/spring-boot-parent/src/checkstyle/nohttp-whitelist.txt" />
6+ </module >
47 <module name =" io.spring.javaformat.checkstyle.SpringChecks" />
58 <module name =" com.puppycrawl.tools.checkstyle.TreeWalker" >
69 <module name =" com.puppycrawl.tools.checkstyle.checks.imports.IllegalImportCheck" >
Original file line number Diff line number Diff line change 1+ ^http://livereload.com/protocols/official-7$
Original file line number Diff line number Diff line change 2020 <main .basedir>${basedir} /..</main .basedir>
2121 <java .version>1.8</java .version>
2222 <spring-javaformat .version>0.0.9</spring-javaformat .version>
23+ <nohttp-checkstyle .version>0.0.1.RELEASE</nohttp-checkstyle .version>
2324 <disable .checks>false</disable .checks>
2425 </properties >
2526 <modules >
155156 <artifactId >spring-javaformat-checkstyle</artifactId >
156157 <version >${spring-javaformat.version} </version >
157158 </dependency >
159+ <dependency >
160+ <groupId >io.spring.nohttp</groupId >
161+ <artifactId >nohttp-checkstyle</artifactId >
162+ <version >${nohttp-checkstyle.version} </version >
163+ </dependency >
158164 </dependencies >
159165 <executions >
160166 <execution >
165171 <configLocation >../spring-boot-parent/src/checkstyle/checkstyle.xml</configLocation >
166172 <suppressionsLocation >../spring-boot-parent/src/checkstyle/checkstyle-suppressions.xml</suppressionsLocation >
167173 <includeTestSourceDirectory >true</includeTestSourceDirectory >
174+ <propertyExpansion >main.basedir=${main.basedir} </propertyExpansion >
175+ <resourceIncludes >**\/*.*</resourceIncludes >
168176 </configuration >
169177 <goals >
170178 <goal >check</goal >
You can’t perform that action at this time.
0 commit comments