Effort

enum Effort : Enum<Effort>

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:

// require Gradle 8.2+
spotbugs {
effort = com.github.spotbugs.snom.Effort.LESS
}

Or via SpotBugsTask to configure the specific task in your project:

// require Gradle 8.2+
spotbugsMain { // or name of another task
effort = com.github.spotbugs.snom.Effort.MAX
}

See also SpotBugs Manual.

Entries

Link copied to clipboard

The effort level to minimize the computation cost. SpotBugs will try to conserve space at the expense of precision.

Link copied to clipboard

The effort level to reduce the computation cost.

Link copied to clipboard

The default level that provides the same feature with MORE.

Link copied to clipboard

The effort level that uses more computation cost. SpotBugs will try to detect more problems by Interprocedural Analysis and Null Pointer Analysis.

Link copied to clipboard

The effort level that maximize the computation cost. SpotBugs will run Interprocedural Analysis of Referenced Classes.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun valueOf(value: String): Effort

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.