Merge pull request #446 from zod/checkstyle
Automatically check codestyle using checkstyle Great idea to do it this way.
This commit is contained in:
commit
08161b47fd
3 changed files with 35 additions and 0 deletions
|
@ -45,6 +45,8 @@ allprojects {
|
|||
gpr(MavenPublication)
|
||||
}
|
||||
}
|
||||
|
||||
apply plugin: "checkstyle"
|
||||
}
|
||||
|
||||
task clean(type: Delete) {
|
||||
|
|
18
config/checkstyle/checkstyle.xml
Normal file
18
config/checkstyle/checkstyle.xml
Normal 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>
|
15
config/checkstyle/suppressions.xml
Normal file
15
config/checkstyle/suppressions.xml
Normal 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>
|
Loading…
Reference in a new issue