timetable/buildSrc/src/main/kotlin/twomartens.checkstyle.gradl...

24 lines
541 B
Plaintext

plugins {
checkstyle
id("twomartens.java-base")
}
checkstyle {
toolVersion = "10.0"
isIgnoreFailures = false
maxWarnings = 0
configFile = rootProject.file("config/checkstyle/checkstyle.xml")
configProperties = mapOf<String, String>(
"org.checkstyle.google.suppressionfilter.config" to
"${project.rootDir}/config/checkstyle/checkstyle-suppressions.xml")
}
tasks.withType<Checkstyle>().configureEach {
reports {
xml.required.set(true)
html.required.set(true)
}
}