Merge pull request #446 from zod/checkstyle

Automatically check codestyle using checkstyle

Great idea to do it this way.
This commit is contained in:
afischerdev 2022-07-10 18:31:31 +02:00 committed by GitHub
commit 08161b47fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 35 additions and 0 deletions

View file

@ -45,6 +45,8 @@ allprojects {
gpr(MavenPublication) gpr(MavenPublication)
} }
} }
apply plugin: "checkstyle"
} }
task clean(type: Delete) { task clean(type: Delete) {

View file

@ -0,0 +1,18 @@
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC
"-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
"https://checkstyle.org/dtds/configuration_1_3.dtd">
<module name="Checker">
<module name="SuppressionFilter">
<property name="file" value="${config_loc}/suppressions.xml"/>
</module>
<module name="FileTabCharacter"/>
<module name="TreeWalker">
<module name="Indentation">
<property name="basicOffset" value="2"/>
</module>
</module>
</module>

View file

@ -0,0 +1,15 @@
<?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="brouter-codec/.*" checks=".*"/>
<suppress files="brouter-core/.*" checks=".*"/>
<suppress files="brouter-expressions/.*" checks=".*"/>
<suppress files="brouter-map-creator/.*" checks=".*"/>
<suppress files="brouter-mapaccess/.*" checks=".*"/>
<suppress files="brouter-server/.*" checks=".*"/>
<suppress files="brouter-util/.*" checks=".*"/>
</suppressions>