|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Objectorg.gradle.api.plugins.quality.CodeQualityExtension
org.gradle.api.plugins.quality.FindBugsExtension
class FindBugsExtension extends CodeQualityExtension
Configuration options for the FindBugs plugin. All options have sensible defaults. See the FindBugs Manual for additional information on these options.
Below is a full configuration example. Since all properties have sensible defaults, typically only selected properties will be configured.
apply plugin: "java" apply plugin: "findbugs" findbugs { toolVersion = "2.0.1" sourceSets = [sourceSets.main] ignoreFailures = true reportsDir = file("$project.buildDir/findbugsReports") effort = "max" reportLevel = "high" visitors = ["FindSqlInjection", "SwitchFallthrough"] omitVisitors = ["FindNonShortCircuit"] includeFilter = file("$rootProject.projectDir/config/findbugs/includeFilter.xml") excludeFilter = file("$rootProject.projectDir/config/findbugs/excludeFilter.xml") }
Property Summary | |
---|---|
String |
effort
The analysis effort level. |
File |
excludeFilter
The filename of a filter specifying bugs to exclude from being reported. |
File |
includeFilter
The filename of a filter specifying which bugs are reported. |
Collection |
omitVisitors
Similar to visitors except that it specifies bug detectors which should not be run. |
String |
reportLevel
The priority threshold for reporting bugs. |
Collection |
visitors
The bug detectors which should be run. |
Property Detail |
---|
String effort
File excludeFilter
File includeFilter
Collection omitVisitors
String reportLevel
Collection visitors
Gradle API 1.12