PMT-3: Update Linter to Ignore new Type of Boilerplate code

This commit is contained in:
Dominik Säume 2024-09-19 21:53:57 +02:00
parent af6b251f74
commit 067e146a9b
Signed by: SZUT-Dominik
GPG key ID: 67D15BB250B41E7C
4 changed files with 14 additions and 1 deletions

View file

@ -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")
} }

View 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>

View file

@ -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"/>

View file

@ -7,7 +7,6 @@
"dateLibrary": "java11", "dateLibrary": "java11",
"library": "spring-boot3", "library": "spring-boot3",
"defaultInterfaces": false, "defaultInterfaces": false,
"hideGenerationTimestamp": true,
"serializableModel": true "serializableModel": true
} }