Skip to content

Commit

Permalink
Add normal finbugs plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
rschlaikjer committed Mar 9, 2017
1 parent 08a170d commit 9f9ca39
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
19 changes: 19 additions & 0 deletions app/build.gradle
@@ -1,4 +1,5 @@
apply plugin: 'com.android.application'
apply plugin: 'findbugs'

android {
compileSdkVersion 25
Expand Down Expand Up @@ -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
}
}
}
9 changes: 9 additions & 0 deletions config/findbugs/filter.xml
@@ -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.