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
constructor(id: RuleSetId, rules: List<BaseRule>)

Properties

Link copied to clipboard
Link copied to clipboard

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

Link copied to clipboard

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.