Merge pull request #22 from bmuschko/code-analysis-sourceset
Only analyze the main source set with FindBugs/Checkstyle
This commit is contained in:
commit
7b43ebc94d
@ -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)
|
||||
}
|
@ -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)
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user