|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Object org.gradle.api.internal.ConventionTask org.gradle.api.tasks.SourceTask org.gradle.api.plugins.quality.FindBugs
class FindBugs extends SourceTask
Analyzes code with FindBugs. See the FindBugs Manual for additional information on configuration options.
Property Summary | |
---|---|
FileCollection |
classes
The classes to be analyzed. |
FileCollection |
classpath
Compile class path for the classes to be analyzed. |
String |
effort
The analysis effort level. |
File |
excludeFilter
The filename of a filter specifying bugs to exclude from being reported. |
FileCollection |
findbugsClasspath
Class path holding the FindBugs library. |
boolean |
ignoreFailures
Whether or not to allow the build to continue if there are warnings. |
File |
includeFilter
The filename of a filter specifying which bugs are reported. |
String |
maxHeapSize
The maximum heap size for the forked findbugs process (ex: '1g'). |
Collection |
omitVisitors
Similar to visitors except that it specifies bug detectors which should not be run. |
FileCollection |
pluginClasspath
Class path holding any additional FindBugs plugins. |
String |
reportLevel
The priority threshold for reporting bugs. |
Collection |
visitors
The bug detectors which should be run. |
Constructor Summary | |
FindBugs(Instantiator instantiator, Factory workerFactory)
|
Method Summary | |
---|---|
void
|
evaluateResult(FindBugsResult result)
For testing only. |
FindBugsSpec
|
generateSpec()
For testing only. |
FindBugsReports
|
getReports()
The reports to be generated by this task. |
FindBugsReports
|
reports(Closure closure)
Configures the reports to be generated by this task. |
void
|
run()
|
Methods inherited from class SourceTask | |
---|---|
exclude, exclude, exclude, exclude, getDefaultSource, getExcludes, getIncludes, getSource, include, include, include, include, setExcludes, setIncludes, setSource, source |
Property Detail |
---|
@SkipWhenEmpty @InputFiles FileCollection classes
@InputFiles FileCollection classpath
@Input @Optional String effort
@InputFile @Optional File excludeFilter
@InputFiles FileCollection findbugsClasspath
boolean ignoreFailures
@InputFile @Optional File includeFilter
@Input @Optional String maxHeapSize
@Input @Optional Collection omitVisitors
@InputFiles FileCollection pluginClasspath
@Input @Optional String reportLevel
@Input @Optional Collection visitors
Constructor Detail |
---|
@Inject FindBugs(Instantiator instantiator, Factory workerFactory)
Method Detail |
---|
@PackageScope void evaluateResult(FindBugsResult result)
@PackageScope FindBugsSpec generateSpec()
FindBugsReports getReports()
FindBugsReports reports(Closure closure)
findbugsTask { reports { xml { destination "build/findbugs.xml" } } }
closure
- The configuration
@TaskAction void run()
Gradle API 1.8