build: add checkstyle configuration and workflow jobs
All checks were successful
Quality Check / Gradle Check (pull_request) Successful in 4m19s
All checks were successful
Quality Check / Gradle Check (pull_request) Successful in 4m19s
This commit is contained in:
parent
7fc19b5bbe
commit
37c9a466d5
7 changed files with 77 additions and 5 deletions
9
config/checkstyle/checkstyle-ignore.xml
Normal file
9
config/checkstyle/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>
|
23
config/checkstyle/checkstyle.xml
Normal file
23
config/checkstyle/checkstyle.xml
Normal file
|
@ -0,0 +1,23 @@
|
|||
<?xml version="1.0"?>
|
||||
<!DOCTYPE module PUBLIC
|
||||
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
|
||||
"https://checkstyle.org/dtds/configuration_1_3.dtd"
|
||||
>
|
||||
<module name="Checker">
|
||||
<module name="SuppressionFilter">
|
||||
<property name="file" value="${config_loc}/checkstyle-ignore.xml"/>
|
||||
</module>
|
||||
|
||||
<property name="severity" value="error"/>
|
||||
<property name="tabWidth" value="4"/>
|
||||
|
||||
<module name="LineLength">
|
||||
<property name="max" value="500"/>
|
||||
</module>
|
||||
<module name="FileTabCharacter">
|
||||
<property name="eachLine" value="true"/>
|
||||
</module>
|
||||
|
||||
<module name="NewlineAtEndOfFile"/>
|
||||
|
||||
</module>
|
Reference in a new issue