From 9f9ca398efe4fa18197585fbab582b510e15f85d Mon Sep 17 00:00:00 2001 From: Ross Schlaikjer Date: Wed, 8 Mar 2017 19:27:11 -0500 Subject: [PATCH] Add normal finbugs plugin --- app/build.gradle | 19 +++++++++++++++++++ config/findbugs/filter.xml | 9 +++++++++ 2 files changed, 28 insertions(+) create mode 100644 config/findbugs/filter.xml diff --git a/app/build.gradle b/app/build.gradle index 189b443..d5f95fe 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,4 +1,5 @@ apply plugin: 'com.android.application' +apply plugin: 'findbugs' android { compileSdkVersion 25 @@ -27,3 +28,21 @@ dependencies { compile 'com.android.support:appcompat-v7:25.1.1' testCompile 'junit:junit:4.12' } + +task findbugs(type: FindBugs, dependsOn: [":app:assembleDebug"]) { + + classes = fileTree('build/intermediates/classes/debug/') + source = fileTree('src/main/java') + classpath = files() + + effort = 'max' + + excludeFilter = file("../config/findbugs/filter.xml") + + reports { + reports { + xml.enabled = false + html.enabled = true + } + } +} \ No newline at end of file diff --git a/config/findbugs/filter.xml b/config/findbugs/filter.xml new file mode 100644 index 0000000..2a2c68a --- /dev/null +++ b/config/findbugs/filter.xml @@ -0,0 +1,9 @@ + + + + + + + + +