Skip to content

Commit

Permalink
check Spotbugs code with FindBugs
Browse files Browse the repository at this point in the history
- resolves #82
- using Spotbugs to check itself would be better but needs appropriate Gradle plugin,
see gradle/gradle#2538 and #15
  • Loading branch information
ThrawnCA authored and henrik242 committed Sep 4, 2017
1 parent daa5732 commit 3e94a3b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion spotbugs/build.gradle
@@ -1,3 +1,4 @@
apply plugin: 'findbugs'
apply from: "$rootDir/gradle/jacoco.gradle"
apply from: "$rootDir/gradle/maven.gradle"

Expand Down Expand Up @@ -49,6 +50,14 @@ dependencies {
compile fileTree(dir: 'lib', include: '*.jar')
}

findbugs {
effort = "max"
reportLevel = "high"
dependencies {
findbugs 'com.google.code.findbugs:findbugs:3.0.1'
}
}

clean {
delete ".libs"
}
Expand Down Expand Up @@ -108,7 +117,7 @@ task updateManifest {
// Manually define what goes into the default jar, since it's not only main sourceset
jar {
from sourceSets.main.output

// Workaround for missing released BCEL maven artifact, see https://github.com/spotbugs/spotbugs/issues/327
// Should be removed after #327 is fixed.
from zipTree("$projectDir/lib/bcel-6.1-20161207.023659-9.jar").matching {
Expand Down

0 comments on commit 3e94a3b

Please sign in to comment.