diff --git a/.gitignore b/.gitignore index f62046d..dbb1822 100644 --- a/.gitignore +++ b/.gitignore @@ -68,3 +68,6 @@ api_docs/ # Project documentation (local only) TODO.md + +# Compiled output +bin/ diff --git a/build.gradle.kts b/build.gradle.kts index d659488..65d7121 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -2,6 +2,7 @@ plugins { id("java") id("io.github.goooler.shadow") version("8.1.8") id("xyz.jpenilla.run-paper") version("3.0.2") + checkstyle } group = "dev.loki" @@ -168,5 +169,20 @@ tasks { } } +checkstyle { + toolVersion = "10.21.4" + configFile = file("config/checkstyle/checkstyle.xml") + isIgnoreFailures = false + maxErrors = 0 + maxWarnings = 0 +} + +tasks.withType().configureEach { + reports { + xml.required.set(true) + html.required.set(true) + } +} + // Default task defaultTasks("clean", "build") diff --git a/config/checkstyle/checkstyle.xml b/config/checkstyle/checkstyle.xml new file mode 100644 index 0000000..a3a9089 --- /dev/null +++ b/config/checkstyle/checkstyle.xml @@ -0,0 +1,89 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +