RuleSet

class RuleSet(val id: RuleSetId, val rules: List<BaseRule>)

A rule set is a collection of rules and must be defined within a rule set provider implementation.

Constructors

Link copied to clipboard
fun RuleSet(id: RuleSetId, rules: List<BaseRule>)

Functions

Link copied to clipboard
fun accept(file: KtFile, bindingContext: BindingContext = BindingContext.EMPTY): List<Finding>

Visits given file with all rules of this rule set, returning a list of all code smell findings.

Properties

Link copied to clipboard
val id: RuleSetId
Link copied to clipboard
var pathFilters: PathFilters? = null

Is used to determine if a given KtFile should be analyzed at all.

Link copied to clipboard
val rules: List<BaseRule>