BaseScanRule

abstract class BaseScanRule : A11yRule

Base for rules that must inspect all nodes together (e.g. duplicate detection). evaluate is sealed to a no-op; subclasses implement evaluateAll instead.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
abstract val ruleId: String

Stable id used in configuration, reports, and issue ids.

Link copied to clipboard
abstract val ruleName: String

Human-readable rule name shown in reports.

Link copied to clipboard
abstract val severity: A11ySeverity

Severity assigned to issues produced by this rule.

Link copied to clipboard
abstract val wcagReference: String?

Optional WCAG criterion associated with this rule.

Functions

Link copied to clipboard
override fun evaluate(node: A11yNode): A11yIssue?

Always returns null because scan-level rules evaluate node lists.

Link copied to clipboard
abstract override fun evaluateAll(nodes: List<A11yNode>): List<A11yIssue>

Evaluates the complete node list.