Enable checkstyle
This commit updates the Gradle build to run checkstyle against the main sources. Checks for tests, as well as certain rules, are disabled as a first step. See gh-1479
This commit is contained in:
9
src/checkstyle/checkstyle-suppressions.xml
Normal file
9
src/checkstyle/checkstyle-suppressions.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?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="." checks="JavadocMethod"/>
|
||||
<suppress files="." checks="SpringLambdaCheck"/>
|
||||
<suppress files="." checks="SpringMethodVisibility"/>
|
||||
</suppressions>
|
||||
9
src/checkstyle/checkstyle.xml
Normal file
9
src/checkstyle/checkstyle.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0"?>
|
||||
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN"
|
||||
"https://checkstyle.org/dtds/configuration_1_3.dtd">
|
||||
<module name="com.puppycrawl.tools.checkstyle.Checker">
|
||||
<module name="SuppressionFilter">
|
||||
<property name="file" value="${config_loc}/checkstyle-suppressions.xml"/>
|
||||
</module>
|
||||
<module name="io.spring.javaformat.checkstyle.SpringChecks"/>
|
||||
</module>
|
||||
Reference in New Issue
Block a user