Skip to content

Commit 27431b5

Browse files
committed
Polish "Enable checkstyle in buildSrc"
See gh-31445
1 parent e95ba4c commit 27431b5

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

buildSrc/config/checkstyle/checkstyle.xml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
<?xml version="1.0"?>
2-
<!DOCTYPE module PUBLIC
3-
"-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
4-
"https://checkstyle.org/dtds/configuration_1_3.dtd">
2+
<!DOCTYPE module PUBLIC "-//Checkstyle//DTD Checkstyle Configuration 1.3//EN" "https://checkstyle.org/dtds/configuration_1_3.dtd">
53
<module name="com.puppycrawl.tools.checkstyle.Checker">
64

5+
<!-- Root Checks -->
6+
<module name="io.spring.javaformat.checkstyle.check.SpringHeaderCheck">
7+
<property name="fileExtensions" value="java"/>
8+
<property name="headerType" value="apache2"/>
9+
<property name="headerCopyrightPattern" value="20\d\d-20\d\d"/>
10+
<property name="packageInfoHeaderType" value="none"/>
11+
</module>
12+
<module name="com.puppycrawl.tools.checkstyle.checks.NewlineAtEndOfFileCheck"/>
13+
714
<!-- TreeWalker Checks -->
815
<module name="com.puppycrawl.tools.checkstyle.TreeWalker">
916

0 commit comments

Comments
 (0)