Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
fb24b5a6
Commit
fb24b5a6
authored
Jun 07, 2019
by
Andy Wilkinson
Committed by
Phillip Webb
Jun 07, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Separate nottp checkstyle configuration
See gh-16682
parent
ede197fa
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
71 additions
and
9 deletions
+71
-9
pom.xml
pom.xml
+0
-1
pom.xml
spring-boot-parent/pom.xml
+34
-0
checkstyle-suppressions.xml
...ng-boot-parent/src/checkstyle/checkstyle-suppressions.xml
+0
-4
checkstyle.xml
spring-boot-parent/src/checkstyle/checkstyle.xml
+0
-3
nohttp-checkstyle-suppressions.xml
...-parent/src/checkstyle/nohttp-checkstyle-suppressions.xml
+13
-0
nohttp-checkstyle.xml
spring-boot-parent/src/checkstyle/nohttp-checkstyle.xml
+7
-0
nohttp-whitelist.txt
spring-boot-parent/src/checkstyle/nohttp-whitelist.txt
+5
-1
pom.xml
spring-boot-samples/pom.xml
+12
-0
No files found.
pom.xml
View file @
fb24b5a6
...
@@ -64,7 +64,6 @@
...
@@ -64,7 +64,6 @@
<artifactId>
replacer
</artifactId>
<artifactId>
replacer
</artifactId>
<version>
1.5.3
</version>
<version>
1.5.3
</version>
</plugin>
</plugin>
</plugins>
</plugins>
</pluginManagement>
</pluginManagement>
</build>
</build>
...
...
spring-boot-parent/pom.xml
View file @
fb24b5a6
...
@@ -539,6 +539,40 @@
...
@@ -539,6 +539,40 @@
<configLocation>
src/checkstyle/checkstyle.xml
</configLocation>
<configLocation>
src/checkstyle/checkstyle.xml
</configLocation>
<suppressionsLocation>
src/checkstyle/checkstyle-suppressions.xml
</suppressionsLocation>
<suppressionsLocation>
src/checkstyle/checkstyle-suppressions.xml
</suppressionsLocation>
<includeTestSourceDirectory>
true
</includeTestSourceDirectory>
<includeTestSourceDirectory>
true
</includeTestSourceDirectory>
</configuration>
<goals>
<goal>
check
</goal>
</goals>
</execution>
<execution>
<id>
nohttp-checkstyle-validation
</id>
<phase>
validate
</phase>
<configuration>
<skip>
${disable.checks}
</skip>
<configLocation>
src/checkstyle/nohttp-checkstyle.xml
</configLocation>
<suppressionsLocation>
src/checkstyle/nohttp-checkstyle-suppressions.xml
</suppressionsLocation>
<propertyExpansion>
main.basedir=${main.basedir}
</propertyExpansion>
<sourceDirectories>
./
</sourceDirectories>
<includes>
**/*
</includes>
<excludes>
.git/**/*,target/**/*
</excludes>
</configuration>
<goals>
<goal>
check
</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-checkstyle-plugin
</artifactId>
<executions>
<execution>
<id>
nohttp-checkstyle-validation
</id>
<phase>
validate
</phase>
<configuration>
<skip>
${disable.checks}
</skip>
<configLocation>
src/checkstyle/nohttp-checkstyle.xml
</configLocation>
<suppressionsLocation>
src/checkstyle/nohttp-checkstyle-suppressions.xml
</suppressionsLocation>
<propertyExpansion>
main.basedir=${main.basedir}
</propertyExpansion>
<propertyExpansion>
main.basedir=${main.basedir}
</propertyExpansion>
<sourceDirectories>
./
</sourceDirectories>
<sourceDirectories>
./
</sourceDirectories>
<includes>
**/*
</includes>
<includes>
**/*
</includes>
...
...
spring-boot-parent/src/checkstyle/checkstyle-suppressions.xml
View file @
fb24b5a6
...
@@ -3,11 +3,7 @@
...
@@ -3,11 +3,7 @@
"-//Checkstyle//DTD SuppressionFilter Configuration 1.2//EN"
"-//Checkstyle//DTD SuppressionFilter Configuration 1.2//EN"
"https://checkstyle.org/dtds/suppressions_1_2.dtd">
"https://checkstyle.org/dtds/suppressions_1_2.dtd">
<suppressions>
<suppressions>
<suppress
files=
"[\\/]transaction-logs[\\/]"
checks=
".*"
/>
<suppress
files=
"[\\/]target[\\/]"
checks=
".*"
/>
<suppress
files=
"[\\/]target[\\/]"
checks=
".*"
/>
<suppress
files=
"[\\/]build.log"
checks=
".*"
/>
<suppress
files=
".+\.(jar|git|ico|p12)"
checks=
".*"
/>
<suppress
files=
"dependency-reduced-pom.xml"
checks=
"NoHttp"
/>
<suppress
files=
"SpringApplicationTests\.java"
checks=
"FinalClass"
/>
<suppress
files=
"SpringApplicationTests\.java"
checks=
"FinalClass"
/>
<suppress
files=
".+Configuration\.java"
checks=
"HideUtilityClassConstructor"
/>
<suppress
files=
".+Configuration\.java"
checks=
"HideUtilityClassConstructor"
/>
<suppress
files=
".+Application\.java"
checks=
"HideUtilityClassConstructor"
/>
<suppress
files=
".+Application\.java"
checks=
"HideUtilityClassConstructor"
/>
...
...
spring-boot-parent/src/checkstyle/checkstyle.xml
View file @
fb24b5a6
<?xml version="1.0"?>
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.2//EN" "https://checkstyle.org/dtds/configuration_1_2.dtd">
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.2//EN" "https://checkstyle.org/dtds/configuration_1_2.dtd">
<module
name=
"com.puppycrawl.tools.checkstyle.Checker"
>
<module
name=
"com.puppycrawl.tools.checkstyle.Checker"
>
<module
name=
"io.spring.nohttp.checkstyle.check.NoHttpCheck"
>
<property
name=
"whitelistFileName"
value=
"${main.basedir}/spring-boot-parent/src/checkstyle/nohttp-whitelist.txt"
/>
</module>
<module
name=
"io.spring.javaformat.checkstyle.SpringChecks"
/>
<module
name=
"io.spring.javaformat.checkstyle.SpringChecks"
/>
<module
name=
"com.puppycrawl.tools.checkstyle.TreeWalker"
>
<module
name=
"com.puppycrawl.tools.checkstyle.TreeWalker"
>
<module
name=
"com.puppycrawl.tools.checkstyle.checks.imports.IllegalImportCheck"
>
<module
name=
"com.puppycrawl.tools.checkstyle.checks.imports.IllegalImportCheck"
>
...
...
spring-boot-parent/src/checkstyle/nohttp-checkstyle-suppressions.xml
0 → 100644
View file @
fb24b5a6
<?xml version="1.0"?>
<!DOCTYPE suppressions PUBLIC
"-//Checkstyle//DTD SuppressionFilter Configuration 1.2//EN"
"https://checkstyle.org/dtds/suppressions_1_2.dtd">
<suppressions>
<suppress
files=
"[\\/]transaction-logs[\\/]"
checks=
"NoHttp"
/>
<suppress
files=
"[\\/]target[\\/]"
checks=
"NoHttp"
/>
<suppress
files=
"[\\/]build.log"
checks=
"NoHttp"
/>
<suppress
files=
".+\.(jar|git|ico|p12|gif|jks|jpg)"
checks=
"NoHttp"
/>
<suppress
files=
"dependency-reduced-pom.xml"
checks=
"NoHttp"
/>
<suppress
files=
"jquery.validate.js"
checks=
"NoHttp"
/>
<suppress
files=
"jquery-[0-9]\.[0-9]\.[0-9].js"
checks=
"NoHttp"
/>
</suppressions>
spring-boot-parent/src/checkstyle/nohttp-checkstyle.xml
0 → 100644
View file @
fb24b5a6
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.2//EN" "https://checkstyle.org/dtds/configuration_1_2.dtd">
<module
name=
"com.puppycrawl.tools.checkstyle.Checker"
>
<module
name=
"io.spring.nohttp.checkstyle.check.NoHttpCheck"
>
<property
name=
"whitelistFileName"
value=
"${main.basedir}/spring-boot-parent/src/checkstyle/nohttp-whitelist.txt"
/>
</module>
</module>
spring-boot-parent/src/checkstyle/nohttp-whitelist.txt
View file @
fb24b5a6
^http://
livereload.com/protocols/official-7
.*
^http://
docs.groovy-lang.org
.*
^http://exslt.org/common.*
^http://exslt.org/common.*
^http://groovy-lang.org.*
^http://hsqldb.org.*
^http://livereload.com/.*
^http://www.jdotsoft.com.*
\ No newline at end of file
spring-boot-samples/pom.xml
View file @
fb24b5a6
...
@@ -171,6 +171,18 @@
...
@@ -171,6 +171,18 @@
<configLocation>
../spring-boot-parent/src/checkstyle/checkstyle.xml
</configLocation>
<configLocation>
../spring-boot-parent/src/checkstyle/checkstyle.xml
</configLocation>
<suppressionsLocation>
../spring-boot-parent/src/checkstyle/checkstyle-suppressions.xml
</suppressionsLocation>
<suppressionsLocation>
../spring-boot-parent/src/checkstyle/checkstyle-suppressions.xml
</suppressionsLocation>
<includeTestSourceDirectory>
true
</includeTestSourceDirectory>
<includeTestSourceDirectory>
true
</includeTestSourceDirectory>
</configuration>
<goals>
<goal>
check
</goal>
</goals>
</execution>
<execution>
<id>
nohttp-checkstyle-validation
</id>
<phase>
validate
</phase>
<configuration>
<skip>
${disable.checks}
</skip>
<configLocation>
../spring-boot-parent/src/checkstyle/nohttp-checkstyle.xml
</configLocation>
<suppressionsLocation>
../spring-boot-parent/src/checkstyle/nohttp-checkstyle-suppressions.xml
</suppressionsLocation>
<propertyExpansion>
main.basedir=${main.basedir}
</propertyExpansion>
<propertyExpansion>
main.basedir=${main.basedir}
</propertyExpansion>
<sourceDirectories>
./
</sourceDirectories>
<sourceDirectories>
./
</sourceDirectories>
<includes>
**/*
</includes>
<includes>
**/*
</includes>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment