DefaultContext

open class DefaultContext : Context

Deprecated

You should not use this class directly. Use or extend Context instead.

Default Context implementation.

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
override fun clearFindings()

Clears previous findings. Normally this is done on every new KtFile analyzed and should be called by clients.

Link copied to clipboard
open fun report(findings: List<Finding>, aliases: Set<String> = emptySet(), ruleSetId: RuleSetId? = null)

Same as report but reports a list of findings.

open override fun report(finding: Finding, aliases: Set<String>, ruleSetId: RuleSetId?)

Reports a single code smell finding.

Properties

Link copied to clipboard
open override val findings: List<Finding>

Returns a copy of violations for this rule.