You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Editing the ignore file can lose reasons or overwrite malformed content #43
Two isolated fixtures reproduced data loss. First, change an existing reason on disk and ignore a different finding. The next write restores the old reason because reload compares fingerprints only. Second, introduce a JSON syntax error and add a finding. The file is replaced with a list containing only the new entry.
Expected behavior and verification
Honor external metadata edits even when fingerprints are unchanged. Distinguish a missing file from an unreadable or invalid one before writing. Preserve the original content on failure, surface the problem and cover both cases with regression tests.
Fixed on branch 43-ignore-file-data-loss (eb387dd), pull request #56.
Every reload takes the entries exactly as they are on disk. A reason edited externally is kept even when the set of fingerprints is unchanged. Other top-level keys are kept when the file is rewritten.
A missing file ignores nothing. An unreadable or invalid file keeps the entries read before and is reported once, and ignore/restore refuse to write over it.
Writes go to a temporary file that is then renamed, so an interrupted write cannot truncate the file.
Tests: an external reason edit followed by ignoring another finding, a JSON syntax error (the file is left untouched and reported), and valid JSON that is not an ignore list. Unit and workspace suites pass locally (Linux).
Activity
Arthurvroum commentedon Nov 25, 2026
Fixed on branch
43-ignore-file-data-loss(eb387dd), pull request #56.Tests: an external reason edit followed by ignoring another finding, a JSON syntax error (the file is left untouched and reported), and valid JSON that is not an ignore list. Unit and workspace suites pass locally (Linux).