Skip to content

runner: a rule that throws on every page reports one fail per page and lowers the score; report it once as not evaluated #1291

Closed

Description

@nc9

A rule that throws is recorded by runner.ts as a <rule>-error check with status: "fail" and the rule's own severity, once per page. On a site where a rule throws on every page (seen in #1274 and #1276) a 30-page audit shows 30 fails for one defect in squirrel, and the score drops for it.

Report a throwing rule once per audit, and say it is squirrel's fault, not the page's.

Acceptance Criteria

  • A page rule that throws on N pages produces one <rule>-error check for the audit (with the affected pages listed), not N.
  • A rule error does not lower the audit score, and is reported as not evaluated (skipped with a reason), not as a page failure.
  • The first error message and the number of pages it hit are in the check details.
  • A test throws from a rule on several pages and asserts the single check and an unchanged score.
  • The JSON report docs describe the rule-error check.

Activity

  1. added
    bug
    size: M
    rules
    on Oct 29, 2026
  2. added theissue type on Oct 29, 2026
  3. nc9 commented on Oct 30, 2026

    @nc9
    ContributorAuthor

    Shipped in v0.0.144 (commits 24971bd, c13e084, 38f786f, 6e9ca14). Checked every acceptance criterion against current main: a rule that throws is reported once as not evaluated and does not lower the score.

    nik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugrulessize: M

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions