Skip to content

Commit f60791a

Browse files
committed
Merge pull request #31445 from izeye
* pr/31445: Polish "Enable checkstyle in buildSrc" Enable checkstyle in buildSrc Closes gh-31445
2 parents 73a5229 + 27431b5 commit f60791a

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?xml version="1.0"?>
2+
<!DOCTYPE module PUBLIC "-//Checkstyle//DTD Checkstyle Configuration 1.3//EN" "https://checkstyle.org/dtds/configuration_1_3.dtd">
3+
<module name="com.puppycrawl.tools.checkstyle.Checker">
4+
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+
14+
<!-- TreeWalker Checks -->
15+
<module name="com.puppycrawl.tools.checkstyle.TreeWalker">
16+
17+
<!-- Imports -->
18+
<module name="com.puppycrawl.tools.checkstyle.checks.imports.UnusedImportsCheck">
19+
<property name="processJavadoc" value="true"/>
20+
</module>
21+
22+
</module>
23+
24+
</module>

0 commit comments

Comments
 (0)