Skip to content

fix(write-ignore): preserve existing inline comments across re-runs - #13

Merged
7a6163 merged 1 commit into
mainfrom
fix/preserve-ignore-comments
Mar 19, 2026
Merged

fix(write-ignore): preserve existing inline comments across re-runs#13
7a6163 merged 1 commit into
mainfrom
fix/preserve-ignore-comments

Conversation

@7a6163

@7a6163 7a6163 commented Mar 19, 2026

Copy link
Copy Markdown
Owner

Previously, running --write-ignore a second time stripped # comments from already-ignored entries because the YAML parser discards comments and the scanner skips already-ignored advisories. Now the config loader extracts inline comments from raw YAML before parsing and merges them with newly generated comments on save (new takes precedence).

Bump version to 2.8.1.

Previously, running --write-ignore a second time stripped # comments from
already-ignored entries because the YAML parser discards comments and the
scanner skips already-ignored advisories. Now the config loader extracts
inline comments from raw YAML before parsing and merges them with newly
generated comments on save (new takes precedence).

Bump version to 2.8.1.
@7a6163
7a6163 merged commit a36184d into main Mar 19, 2026
8 checks passed
@7a6163
7a6163 deleted the fix/preserve-ignore-comments branch March 19, 2026 03:53
@7a6163
7a6163 restored the fix/preserve-ignore-comments branch March 22, 2026 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant