DefaultRuleSetProvider

Interface which marks sub-classes as provided by detekt via the rules sub-module.

Allows to implement "--disable-default-rulesets" effectively without the need to manage a list of rule set names.

Properties

Link copied to clipboard
abstract val ruleSetId: RuleSet.Id

Every rule set must be pre-configured with an ID to validate if this rule set must be created for current analysis.

Functions

Link copied to clipboard
abstract fun instance(): RuleSet

This function must be implemented to provide custom rule sets.