Add checkstyle
This commit is contained in:
parent
9d37e2c648
commit
c80e34fdc5
3 changed files with 26 additions and 0 deletions
|
@ -45,6 +45,8 @@ allprojects {
|
|||
gpr(MavenPublication)
|
||||
}
|
||||
}
|
||||
|
||||
apply plugin: "checkstyle"
|
||||
}
|
||||
|
||||
task clean(type: Delete) {
|
||||
|
|
16
config/checkstyle/checkstyle.xml
Normal file
16
config/checkstyle/checkstyle.xml
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?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"/> -->
|
||||
</module>
|
||||
</module>
|
8
config/checkstyle/suppressions.xml
Normal file
8
config/checkstyle/suppressions.xml
Normal file
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0"?>
|
||||
|
||||
<!DOCTYPE suppressions PUBLIC
|
||||
"-//Checkstyle//DTD SuppressionFilter Configuration 1.2//EN"
|
||||
"https://checkstyle.org/dtds/suppressions_1_2.dtd">
|
||||
|
||||
<suppressions>
|
||||
</suppressions>
|
Loading…
Reference in a new issue