RulesSpec

interface RulesSpec

Types

Link copied to clipboard
sealed class FailurePolicy

Policy to decide if detekt throws an error.

Link copied to clipboard
sealed class RunPolicy

Restrict rules to use for current analysis.

Properties

Link copied to clipboard

Activates all rules which do not have the active property set to 'true' by default.

Link copied to clipboard
abstract val autoCorrect: Boolean

Should detekt create mutable ASTs which io.gitlab.arturbosch.detekt.api.Rules can manipulate?

Link copied to clipboard

Sets the policy to handle issues found during the analysis.

Link copied to clipboard

Allows to programmatically restrict the execution of certain rules.