content/gradle/quality/checkstyle.gradle

27 lines
No EOL
535 B
Groovy

apply plugin: 'checkstyle'
checkstyle {
toolVersion '8.33'
showViolations = true
ignoreFailures = true
configFile rootProject.file("config/checkstyle/checkstyle.xml")
}
checkstyleMain {
exclude "**/module-info.java"
logging.setLevel(LogLevel.LIFECYCLE)
source ='src/main/java'
}
checkstyleTest {
exclude "**/module-info.java"
logging.setLevel(LogLevel.LIFECYCLE)
source ='src/test/java'
}
tasks.withType(Checkstyle) {
reports {
xml.enabled false
html.enabled true
}
}