Skip to content

feat(fix-mode): warn to stderr when fixes not applied (#85)#89

Merged
luojiyin1987 merged 2 commits into
masterfrom
feat/fix-mode-warn-unapplied-fixes
Jul 10, 2026
Merged

feat(fix-mode): warn to stderr when fixes not applied (#85)#89
luojiyin1987 merged 2 commits into
masterfrom
feat/fix-mode-warn-unapplied-fixes

Conversation

@luojiyin1987

Copy link
Copy Markdown
Contributor

Closes #85.

Summary

  • In --fix file mode, emit a stderr warning for each file whose fixedResult.notAppliedFixes is non-empty (fixes left unapplied due to conflicts), after writing the file back.
  • Conservative scope: warning only, no exit-code change (backward compatible). --stdin --fix and the exit code are untouched; no new CLI flag.
  • Logic extracted into a pure, unit-tested helper getUnappliedFixesWarnings (src/utils/report-unapplied-fixes.ts) so it doesn't require forcing a real conflict from @lint-md/core.

Verification

  • npm run build (tsc cjs + esm) passes.
  • npm test: 10 suites / 95 tests pass (6 new unit tests for the helper, 100% coverage).

🤖 Generated with opencode

@luojiyin1987 luojiyin1987 merged commit 5f47918 into master Jul 10, 2026
4 checks passed
@luojiyin1987 luojiyin1987 deleted the feat/fix-mode-warn-unapplied-fixes branch July 10, 2026 09:28
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.

feat(fix-mode): 暴露 notAppliedFixes 到 stderr 警告

1 participant