Only analyze the main source set

This commit is contained in:
Benjamin Muschko 2016-11-09 15:00:05 -05:00
parent bfd04a0686
commit 6fd694af7e
2 changed files with 2 additions and 12 deletions

View File

@ -3,6 +3,7 @@ apply plugin: 'checkstyle'
checkstyle {
ignoreFailures = true
configFile = new File(rootProject.projectDir, 'sun_checks.xml')
sourceSets = [sourceSets.main]
}
tasks.withType(Checkstyle) {
@ -10,10 +11,4 @@ tasks.withType(Checkstyle) {
xml.enabled = false
html.enabled = true
}
}
task checkstyle {
group = 'Verification'
description = 'Runs Checkstyle analysis for all classes.'
dependsOn tasks.withType(Checkstyle)
}

View File

@ -2,6 +2,7 @@ apply plugin: 'findbugs'
findbugs {
ignoreFailures = true
sourceSets = [sourceSets.main]
}
tasks.withType(FindBugs) {
@ -9,10 +10,4 @@ tasks.withType(FindBugs) {
xml.enabled = false
html.enabled = true
}
}
task findbugs {
group = 'Verification'
description = 'Runs FindBugs analysis for all classes.'
dependsOn tasks.withType(FindBugs)
}