From 3e94a3b8f49ccb4d530f878f324ab044a483b43b Mon Sep 17 00:00:00 2001 From: thrawnca Date: Mon, 4 Sep 2017 16:15:36 +1000 Subject: [PATCH] check Spotbugs code with FindBugs - resolves #82 - using Spotbugs to check itself would be better but needs appropriate Gradle plugin, see https://github.com/gradle/gradle/pull/2538 and #15 --- spotbugs/build.gradle | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/spotbugs/build.gradle b/spotbugs/build.gradle index a2cb775b89b..ba2ced63382 100644 --- a/spotbugs/build.gradle +++ b/spotbugs/build.gradle @@ -1,3 +1,4 @@ +apply plugin: 'findbugs' apply from: "$rootDir/gradle/jacoco.gradle" apply from: "$rootDir/gradle/maven.gradle" @@ -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" } @@ -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 {