chore: unify checkstyle, fix violations, cleanup bin/
This commit is contained in:
parent
535d472a41
commit
0dd8e8e717
3 changed files with 108 additions and 0 deletions
|
|
@ -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<Checkstyle>().configureEach {
|
||||
reports {
|
||||
xml.required.set(true)
|
||||
html.required.set(true)
|
||||
}
|
||||
}
|
||||
|
||||
// Default task
|
||||
defaultTasks("clean", "build")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue