A11yRule

interface A11yRule

Contract implemented by every accessibility rule.

Inheritors

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
abstract fun evaluate(node: A11yNode): A11yIssue?

Evaluates a single node.

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

Evaluates an entire node list.