diff --git a/build.gradle b/build.gradle index b35cf4c0f..7052f0bbd 100644 --- a/build.gradle +++ b/build.gradle @@ -3,6 +3,7 @@ plugins { id "com.github.johnrengelman.shadow" id "java" + id 'checkstyle' } Properties props = new Properties() diff --git a/config/checkstyle/checkstyle.xml b/config/checkstyle/checkstyle.xml new file mode 100644 index 000000000..1cad72197 --- /dev/null +++ b/config/checkstyle/checkstyle.xml @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/core/build.gradle b/core/build.gradle index cf9bc413a..d7b9186fd 100644 --- a/core/build.gradle +++ b/core/build.gradle @@ -2,6 +2,7 @@ plugins { id "com.github.johnrengelman.shadow" id 'java' id 'com.adarshr.test-logger' version '3.2.0' + id 'checkstyle' } group 'net.sf.openrocket' @@ -18,11 +19,10 @@ repositories { mavenCentral() } -//test { -// testLogging { -// events "PASSED", "SKIPPED", "FAILED" -// } -//} +checkstyle { + ignoreFailures = false + maxWarnings = 0 +} dependencies { implementation group: 'org.commonmark', name: 'commonmark', version: '0.19.0' // 0.21.0 diff --git a/swing/build.gradle b/swing/build.gradle index 62f6cd245..cdf9e9cfc 100644 --- a/swing/build.gradle +++ b/swing/build.gradle @@ -2,6 +2,7 @@ plugins { id "com.github.johnrengelman.shadow" id 'java' id 'com.adarshr.test-logger' version '3.2.0' + id 'checkstyle' } group 'net.sf.openrocket' @@ -18,11 +19,10 @@ repositories { mavenCentral() } -//test { -// testLogging { -// events "PASSED", "SKIPPED", "FAILED" -// } -//} +checkstyle { + ignoreFailures = false + maxWarnings = 0 +} configurations { testArtifactsClasspath {