53 lines
1,023 B
Groovy
53 lines
1,023 B
Groovy
|
/*
|
||
|
spotbugs {
|
||
|
effort = "max"
|
||
|
reportLevel = "low"
|
||
|
}
|
||
|
|
||
|
tasks.withType(com.github.spotbugs.SpotBugsTask) {
|
||
|
ignoreFailures = true
|
||
|
reports {
|
||
|
xml.enabled = false
|
||
|
html.enabled = true
|
||
|
}
|
||
|
}
|
||
|
|
||
|
pmd {
|
||
|
toolVersion = '6.11.0'
|
||
|
ruleSets = ['category/java/bestpractices.xml']
|
||
|
}
|
||
|
|
||
|
tasks.withType(Pmd) {
|
||
|
ignoreFailures = true
|
||
|
reports {
|
||
|
xml.enabled = true
|
||
|
html.enabled = true
|
||
|
}
|
||
|
}
|
||
|
|
||
|
checkstyle {
|
||
|
toolVersion = '8.26'
|
||
|
configFile = rootProject.file('config/checkstyle/checkstyle.xml')
|
||
|
ignoreFailures = true
|
||
|
checkstyleMain {
|
||
|
source = sourceSets.main.allSource
|
||
|
}
|
||
|
}
|
||
|
|
||
|
tasks.withType(Checkstyle) {
|
||
|
ignoreFailures = true
|
||
|
reports {
|
||
|
xml.enabled = true
|
||
|
html.enabled = true
|
||
|
}
|
||
|
}
|
||
|
|
||
|
sonarqube {
|
||
|
properties {
|
||
|
property "sonar.projectName", "${project.group} ${project.name}"
|
||
|
property "sonar.sourceEncoding", "UTF-8"
|
||
|
property "sonar.tests", "src/test/java"
|
||
|
property "sonar.scm.provider", "git"
|
||
|
}
|
||
|
}
|
||
|
*/
|