Merge pull request #22 from bmuschko/code-analysis-sourceset

Only analyze the main source set with FindBugs/Checkstyle
This commit is contained in:
Bruce Eckel 2016-11-09 12:34:16 -08:00 committed by GitHub
commit 7b43ebc94d
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)
}