Skip to content

fix(batch-lint): keep files with notAppliedFixes (#86)#90

Merged
luojiyin1987 merged 1 commit into
masterfrom
fix/batch-lint-keep-unapplied-fixes
Jul 10, 2026
Merged

fix(batch-lint): keep files with notAppliedFixes (#86)#90
luojiyin1987 merged 1 commit into
masterfrom
fix/batch-lint-keep-unapplied-fixes

Conversation

@luojiyin1987

Copy link
Copy Markdown
Contributor

Closes #86.

Summary

  • batchLint no longer drops files whose lintResult is empty but whose fixedResult.notAppliedFixes is non-empty. The filter now retains an item when it has lint findings or leftover unapplied fixes.
  • Extracted the condition into a pure, exported keepLintItem predicate so it is unit-testable without a real worker (same approach as getUnappliedFixesWarnings from feat(fix-mode): warn to stderr when fixes not applied (#85) #89).
  • Complements the feat(fix-mode): warn to stderr when fixes not applied (#85) #89 stderr warning: getUnappliedFixesWarnings iterates the batchLint output, so keeping these items ensures the warning actually fires for them.

Verification

  • npm run build (tsc cjs + esm) passes.
  • npm test: 10 suites / 100 tests pass (4 new keepLintItem unit tests).

🤖 Generated with opencode

@luojiyin1987 luojiyin1987 merged commit 091a141 into master Jul 10, 2026
5 checks passed
@luojiyin1987 luojiyin1987 deleted the fix/batch-lint-keep-unapplied-fixes branch July 10, 2026 09:37
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.

fix(batch-lint): 过滤逻辑保留有 notAppliedFixes 的文件

1 participant