Skip to content

Commit e161c6f

Browse files
committed
Broaden files covered by checkstyle
Closes gh-16682
1 parent 80d8a5c commit e161c6f

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

spring-boot-parent/pom.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,9 @@
540540
<suppressionsLocation>src/checkstyle/checkstyle-suppressions.xml</suppressionsLocation>
541541
<includeTestSourceDirectory>true</includeTestSourceDirectory>
542542
<propertyExpansion>main.basedir=${main.basedir}</propertyExpansion>
543-
<resourceIncludes>**\/*.*</resourceIncludes>
543+
<sourceDirectories>./</sourceDirectories>
544+
<includes>**/*</includes>
545+
<excludes>.git/**/*,target/**/*</excludes>
544546
</configuration>
545547
<goals>
546548
<goal>check</goal>

spring-boot-parent/src/checkstyle/checkstyle-suppressions.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
"-//Checkstyle//DTD SuppressionFilter Configuration 1.2//EN"
44
"https://checkstyle.org/dtds/suppressions_1_2.dtd">
55
<suppressions>
6-
<suppress files="[\\/]target[\\/]" checks=".*" />
6+
<suppress files="[\\/]transaction-logs[\\/]" checks=".*" />
7+
<suppress files="[\\/]target[\\/]" checks=".*" />
8+
<suppress files="[\\/]build.log" checks=".*" />
79
<suppress files=".+\.[jar|git|ico|p12]" checks=".*" />
810
<suppress files="SpringApplicationTests\.java" checks="FinalClass" />
911
<suppress files=".+Configuration\.java" checks="HideUtilityClassConstructor" />
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
^http://livereload.com/protocols/official-7$
1+
^http://livereload.com/protocols/official-7.*
2+
^http://exslt.org/common.*

spring-boot-samples/pom.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,9 @@
172172
<suppressionsLocation>../spring-boot-parent/src/checkstyle/checkstyle-suppressions.xml</suppressionsLocation>
173173
<includeTestSourceDirectory>true</includeTestSourceDirectory>
174174
<propertyExpansion>main.basedir=${main.basedir}</propertyExpansion>
175-
<resourceIncludes>**\/*.*</resourceIncludes>
175+
<sourceDirectories>./</sourceDirectories>
176+
<includes>**/*</includes>
177+
<excludes>.git/**/*,target/**/*</excludes>
176178
</configuration>
177179
<goals>
178180
<goal>check</goal>

0 commit comments

Comments
 (0)