Skip to content

Instantly share code, notes, and snippets.

@rafaeltoledo
Created November 17, 2015 17:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rafaeltoledo/2f103da99a4b8eb6e84f to your computer and use it in GitHub Desktop.
Save rafaeltoledo/2f103da99a4b8eb6e84f to your computer and use it in GitHub Desktop.
findbugs.groovy
task findbugs(type: FindBugs, dependsOn: assembleDebug) {
ignoreFailures = false
effort = 'max'
reportLevel = 'high'
excludeFilter = new File("${project.rootDir}/config/findbugs-filter.xml")
classes = files("${project.rootDir}/app/build/intermediates/classes")
source 'src'
include '**/*.java'
exclude '**/gen/**'
reports {
xml.enabled = false
html.enabled = true
html {
destination "$project.buildDir/reports/findbugs/findbugs.html"
}
}
classpath = files()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment