final enum Effort extends Enum<E<E>>
The Effort
is configuration to adjust SpotBugs detectors. Use lower effort to reduce
computation cost.
Usage:
Set via the spotbugs
extension to configure all tasks in your project:
spotbugs {
effort = 'less'
}
Or via SpotBugsTask
to configure the specific task in your project:
spotbugsMain { // or name of another task
effort = 'max'
}
See also SpotBugs Manual.
Modifiers | Name | Description |
---|---|---|
static Effort |
DEFAULT |
The default level that provides the same feature with MORE. |
static Effort |
LESS |
The effort level to reduce the computation cost. |
static Effort |
MAX |
The effort level that maximize the computation cost. |
static Effort |
MAX_VALUE |
|
static Effort |
MIN |
The effort level to minimize the computation cost. |
static Effort |
MIN_VALUE |
|
static Effort |
MORE |
The effort level that uses more computation cost. |
The effort level to reduce the computation cost.
The effort level that maximize the computation cost. SpotBugs will run Interprocedural Analysis of Referenced Classes.
The effort level to minimize the computation cost. SpotBugs will try to conserve space at the expense of precision.
The effort level that uses more computation cost. SpotBugs will try to detect more problems by Interprocedural Analysis and Null Pointer Analysis.