PMT-3: Update Linter to Ignore new Type of Boilerplate code
This commit is contained in:
parent
af6b251f74
commit
067e146a9b
4 changed files with 14 additions and 1 deletions
|
@ -18,6 +18,7 @@ plugins {
|
||||||
|
|
||||||
checkstyle {
|
checkstyle {
|
||||||
toolVersion = "10.12.4"
|
toolVersion = "10.12.4"
|
||||||
|
configDirectory = file("src/main/resources/")
|
||||||
configFile = file("src/main/resources/checkstyle.xml")
|
configFile = file("src/main/resources/checkstyle.xml")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
9
src/main/resources/checkstyle-ignore.xml
Normal file
9
src/main/resources/checkstyle-ignore.xml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<?xml version="1.0"?>
|
||||||
|
<!DOCTYPE suppressions PUBLIC
|
||||||
|
"-//Puppy Crawl//DTD Suppressions 1.2//EN"
|
||||||
|
"https://checkstyle.org/dtds/suppressions_1_2.dtd"
|
||||||
|
>
|
||||||
|
|
||||||
|
<suppressions>
|
||||||
|
<suppress files="[\\/]de[\\/]hmmh[\\/]pmt[\\/]oas" checks="."/>
|
||||||
|
</suppressions>
|
|
@ -4,6 +4,10 @@
|
||||||
"https://checkstyle.org/dtds/configuration_1_3.dtd"
|
"https://checkstyle.org/dtds/configuration_1_3.dtd"
|
||||||
>
|
>
|
||||||
<module name="Checker">
|
<module name="Checker">
|
||||||
|
<module name="SuppressionFilter">
|
||||||
|
<property name="file" value="${config_loc}/checkstyle-ignore.xml"/>
|
||||||
|
</module>
|
||||||
|
|
||||||
<property name="severity" value="error"/>
|
<property name="severity" value="error"/>
|
||||||
<property name="tabWidth" value="4"/>
|
<property name="tabWidth" value="4"/>
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
"dateLibrary": "java11",
|
"dateLibrary": "java11",
|
||||||
"library": "spring-boot3",
|
"library": "spring-boot3",
|
||||||
"defaultInterfaces": false,
|
"defaultInterfaces": false,
|
||||||
"hideGenerationTimestamp": true,
|
|
||||||
"serializableModel": true
|
"serializableModel": true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue