hypra

ALLOW-003: allow names an unknown rule

Warning: the page still builds, but this is most likely a mistake.

The code in allow isn't a rule, usually because of a typo, so it switches nothing off. The rule it was meant for still runs.

Fails

page(title: "Shoes", description: "All our running shoes, from light racers to trail shoes.") {
  h1 "Shoes"
  allow("A11Y-07") "the campaign text is fixed by the brand guide"
  a("/sale") "Sale"
}
warning[ALLOW-003]: there's no rule `A11Y-07`
 --> page.hypra:3:9
  |
3 |   allow("A11Y-07") "the campaign text is fixed by the brand guide"
  |         ^^^^^^^^^
  = help: did you mean `A11Y-007`?
  = docs: https://hypralang.dev/rules/allow-003/

0 errors, 1 warning

Fixed

page(title: "Shoes", description: "All our running shoes, from light racers to trail shoes.") {
  h1 "Shoes"
  allow("A11Y-007") "the campaign text is fixed by the brand guide"
  a("/sale") "Click here"
}

Every code is listed on the rules page.