Skip to Content
flowpact

FP902 · override-unused

An override matches no finding — the problem was fixed, or the target is misspelled.

CodeNameCategoryDefault severityReported by
FP902override-unusedConfig & overrides🟡 warninglint, check, the action, the editor

What you see

In the contracts-drift fixture:

▲  WARN  FP902 override-unused
  Override for unused-output on .github/workflows/deploy.yml#outputs.url matches no finding
  ▶ .github/flowpact/flowpact.config.yml:13:5

Why it matters

Stale overrides hide future problems at the same target and make the exception list untrustworthy.

How to fix

Delete the override, or correct its rule / target / file (use the symbol shown in JSON output or flowpact lint --format json).

Example

overrides:
  - rule: unused-input
    target: .github/workflows/deploy.yml#inputs.siute   # misspelled: matches no finding
    reason: Read by the release dispatcher until the migration

Change the severity

Change the severity (or turn the rule off) in .github/flowpact/flowpact.config.yml, by code or by name:

.github/flowpact/flowpact.config.yml
rules:
  FP902: off
  # or: override-unused: error

Explain it in the terminal:

flowpact explain FP902
  • FP901 override-expired: An override passed its expires date; the findings it suppressed are reported again.
  • FP905 ignore-comment-unused: A # flowpact: ignore[…] comment names a rule that reports nothing on the line it accepts.
  • Overrides

On this page