Skip to content

Commit 7b43ebc

Browse files
authored
Merge pull request BruceEckel#22 from bmuschko/code-analysis-sourceset
Only analyze the main source set with FindBugs/Checkstyle
2 parents bfd04a0 + 6fd694a commit 7b43ebc

2 files changed

Lines changed: 2 additions & 12 deletions

File tree

‎gradle/checkstyle.gradle‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,12 @@ apply plugin: 'checkstyle'
33
checkstyle {
44
ignoreFailures = true
55
configFile = new File(rootProject.projectDir, 'sun_checks.xml')
6+
sourceSets = [sourceSets.main]
67
}
78

89
tasks.withType(Checkstyle) {
910
reports {
1011
xml.enabled = false
1112
html.enabled = true
1213
}
13-
}
14-
15-
task checkstyle {
16-
group = 'Verification'
17-
description = 'Runs Checkstyle analysis for all classes.'
18-
dependsOn tasks.withType(Checkstyle)
1914
}

‎gradle/findbugs.gradle‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,12 @@ apply plugin: 'findbugs'
22

33
findbugs {
44
ignoreFailures = true
5+
sourceSets = [sourceSets.main]
56
}
67

78
tasks.withType(FindBugs) {
89
reports {
910
xml.enabled = false
1011
html.enabled = true
1112
}
12-
}
13-
14-
task findbugs {
15-
group = 'Verification'
16-
description = 'Runs FindBugs analysis for all classes.'
17-
dependsOn tasks.withType(FindBugs)
1813
}

0 commit comments

Comments
 (0)