Permalink
Browse files

Add normal finbugs plugin

  • Loading branch information...
rschlaikjer committed Mar 9, 2017
1 parent 08a170d commit 9f9ca398efe4fa18197585fbab582b510e15f85d
Showing with 28 additions and 0 deletions.
  1. +19 −0 app/build.gradle
  2. +9 −0 config/findbugs/filter.xml
@@ -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
}
}
}
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<FindBugsFilter>
<Match>
<Class name="~.*\.R\$.*"/>
</Match>
<Match>
<Class name="~.*\.Manifest\$.*"/>
</Match>
</FindBugsFilter>

0 comments on commit 9f9ca39

Please sign in to comment.