Skip to content

Commit da8434a

Browse files
committed
Update CheckStyle config
1 parent e44b814 commit da8434a

File tree

12 files changed

+717
-1359
lines changed

12 files changed

+717
-1359
lines changed

.editorconfig

Lines changed: 466 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
<?xml version="1.0"?>
2-
3-
<!DOCTYPE suppressions PUBLIC
4-
"-//Checkstyle//DTD SuppressionFilter Configuration 1.2//EN"
5-
"https://checkstyle.org/dtds/suppressions_1_2.dtd">
6-
7-
<suppressions>
8-
<suppress checks="." files="[\\/]build[\\/]" />
9-
<suppress checks="." files="[\\/]bin[\\/]" />
10-
<suppress checks="." files="[\\/]target[\\/]" />
11-
<suppress checks="." files="[\\/]src/test[\\/]" />
12-
<suppress checks="." files="[\\/]src/main/java/io[\\/]" />
13-
<suppress checks="." files="[\\/]code-analysis[\\/]" />
14-
<suppress files="TestMain.java" checks="[a-zA-Z0-9]*"/>
15-
</suppressions>
1+
<?xml version="1.0"?>
2+
3+
<!DOCTYPE suppressions PUBLIC
4+
"-//Checkstyle//DTD SuppressionFilter Configuration 1.2//EN"
5+
"https://checkstyle.org/dtds/suppressions_1_2.dtd">
6+
7+
<suppressions>
8+
<suppress checks="." files="[\\/]build[\\/]" />
9+
<suppress checks="." files="[\\/]bin[\\/]" />
10+
<suppress checks="." files="[\\/]target[\\/]" />
11+
<suppress checks="." files="[\\/]src/test[\\/]" />
12+
<suppress checks="." files="[\\/]src/integrationTest[\\/]" />
13+
<suppress checks="." files="[\\/]src/main/java/io[\\/]" />
14+
<suppress checks="." files="[\\/]src/main/java/net/explorviz/span/hash/HighwayHash.java" />
15+
</suppressions>

code-analysis/checkstyle.xml

Lines changed: 81 additions & 106 deletions
Large diffs are not rendered by default.

code-analysis/code-analysis.gradle

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
apply plugin: 'pmd'
2+
apply plugin: 'checkstyle'
3+
apply plugin: 'jacoco'
4+
5+
jacocoTestReport {
6+
7+
executionData { tasks.withType(Test).findAll { it.jacoco.destinationFile.exists() }*.jacoco.destinationFile }
8+
9+
reports {
10+
xml.required = true
11+
html.required = true
12+
}
13+
}
14+
15+
pmd {
16+
// Empty ruleset is necessary for exclude-pattern
17+
// https://stackoverflow.com/questions/32247190/pmd-exclude-pattern-with-gradle
18+
ruleSets = []
19+
ruleSetFiles = files("code-analysis/pmd.xml")
20+
ignoreFailures = false
21+
toolVersion = "6.53.0"
22+
}
23+
24+
checkstyle {
25+
configDirectory = file("code-analysis")
26+
configFile = file("code-analysis/checkstyle.xml")
27+
maxWarnings = 0
28+
ignoreFailures = false
29+
toolVersion = "10.12.5"
30+
}

code-analysis/eclipse-cleanup.xml

Lines changed: 0 additions & 114 deletions
This file was deleted.

0 commit comments

Comments
 (0)