final class Rule(val id: String, val description: String, val pageLevel: Boolean, val severity: Severity, val criterion: Option[Criterion], run: Page => Seq[Violation])
One named rule.
Value parameters
criterion
the WCAG success criterion the rule enforces, if it enforces one
description
what the rule checks, as a phrase
id
the stable id a spec excludes or selects the rule by
pageLevel
whether the rule applies only to a whole page, so a fragment rendered without a layout is not judged on what only a layout provides
run
the check itself; an empty result means the page passed
severity
whether a finding fails the page or is only reported