BaseA11yRule

abstract class BaseA11yRule : A11yRule

Base class for rules that evaluate each node independently.

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?

Entry point called by the scanner engine. Sealed final so cross-cutting concerns (logging, timing, exception guarding) can be added here without touching every concrete rule.

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

Evaluates an entire node list.