feat(findings): keyed by the code they flag, not its line number (#491) (#497)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 3s
CI / Deploy Docs (push) Successful in 1m12s
CI / Deploy MCP (push) Successful in 5m29s
CI / Deploy Dashboard (push) Successful in 7m31s
CI / Deploy Agent (push) Successful in 9m24s

This commit was merged in pull request #497.
This commit is contained in:
sharang committed 2026-10-06 10:35:14 +00:00
1 parent bdf7fa4268
commit ece992da32
8 files changed
+531 -8

No files matched your search

+8 -3
View File
@@ -183,9 +183,14 @@ What the scan never changes:
- A scheduled scan that finds no new commits (or unchanged uploaded files) does
not scan, so it closes nothing.
Findings are tied to a file and line. When code moves (lines added above it),
the same issue is reported at its new line as a new finding, and the old one
is closed as no longer found.
Findings are tied to the code they flag, not to its line number: the rule,
the file, the flagged line without its whitespace (for a secret, the match),
and how many identical lines come before it in the file. When code moves
(lines added above it, re-indented), the finding stays the same: its status,
assessment and tracker issue stay with it, and it shows the new line. Only
a change of the flagged line itself (or a rename of the file) makes it a new
finding and closes the old one. Findings stored before this was introduced
keep their status and issue on the first scan after it.
### Recommended Flow