FP811 · impact-declaration-conflict
Another source declares a bigger impact than the one the release tool reads.
| Code | Name | Category | Default severity | Reported by |
|---|---|---|---|---|
FP811 | impact-declaration-conflict | Contracts | 🔴 error | Impact mode |
Why it matters
Release tools read one thing — usually the squashed commit title. A semver:major label on a fix: pull request looks right in review, but the release is cut as a patch.
How to fix
Make the authoritative source (impact.declaredBy, the title by default) declare the impact, for example feat!: ….
Example
# PR title: "fix: rename the deploy output" (the release tool reads this: a patch)
# PR label: semver:majorAccept one finding
When a finding is intended, accept it with a reason rather than turning the rule off. It is listed apart from the other findings, and comes back when the date passes (overrides):
overrides:
- rule: FP811
target: <the finding's symbol>
reason: Why it is acceptable here, at least 10 characters.
expires: YYYY-MM-DD # optionaltarget is the symbol the finding is about; to list them:
flowpact lint --format json | jq -r '.findings[] | select(.code == "FP811") | .symbol'* matches within a path segment and ** across segments, so one entry accepts every finding whose symbol matches:
target: '**#inputs.app-id' is that input in every workflow and action.
An override counts only once it is on the base branch: impact mode reads the overrides and severities of its rules from the baseline's config, so a pull request cannot accept or switch off its own check. No ignore comment accepts its findings.
Change the severity
Change the severity (or turn the rule off) in .github/flowpact/flowpact.config.yml, by code or by name:
rules:
FP811: off
# or: impact-declaration-conflict: errorA severity counts only once it is on the base branch, as impact mode reads it from the baseline's config.
Explain it in the terminal:
flowpact explain FP811Related
FP810impact-under-declared: The changes to published workflows or actions need a bigger release than the pull request declares.- Impact mode