Skip to content

feat(core): lint suppressed section resolving okf: concept citations #1866

Closed

Description

@lex00

Part of the OKF epic #1057. First consumer surface from #1059.

A suppression reason may cite a concept with an okf: token, e.g. // chant-disable-next-line AWS021 -- okf:/decisions/public-assets.md. parseDisableComments (packages/core/src/lint/engine.ts) already captures reason text after -- unchanged, so the directive syntax does not move. Today suppressed diagnostics reach only SARIF, where the reason lands as justification (formatSarif in cli/reporters/stylish.ts). Add a suppressed section to formatStylish that resolves an okf: citation against the loaded bundle and prints the concept's title beside the rule id, with the bundle-relative path on the following line. A citation that resolves nothing prints as-is with a warning. A cited suppression suppresses exactly as an uncited one does.

Depends on the bundle reader.

Acceptance criteria

  • formatStylish gains a suppressed section rendered when suppressed diagnostics exist
  • an okf: citation resolves to the concept title and path in the output
  • an unresolvable citation prints the raw reason with a warning
  • SARIF output unchanged; suppression semantics unchanged

Activity

  1. added
    enhancement
    area:core
    on Aug 24, 2026
  2. added a commit that references this issue on Sep 4, 2026
    1cb1f81
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

    area:coreenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions