Skip to content

Linter: Fix --upgrade to not use parallel processing#1589

Merged
marcoroth merged 1 commit intomainfrom
fix-upgrade-parallel-processing
Apr 3, 2026
Merged

Linter: Fix --upgrade to not use parallel processing#1589
marcoroth merged 1 commit intomainfrom
fix-upgrade-parallel-processing

Conversation

@marcoroth
Copy link
Copy Markdown
Owner

@marcoroth marcoroth commented Apr 3, 2026

This pull request fixes the --upgrade flag in the linter CLI.

When --upgrade ran on codebases with 10+ files, it used parallel worker threads that loaded the config from disk instead of using the temporary upgrade config with new rules enabled. This caused all new rules to be incorrectly reported as having no offenses, enabling rules that should have been disabled.

This pull request now forces sequential processing during upgrade since correctness matters more than speed for this one-time operation.

CleanShot 2026-04-03 at 03 02 29@2x

Resolves #1578

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Apr 3, 2026

npx https://pkg.pr.new/@herb-tools/formatter@1589
npx https://pkg.pr.new/@herb-tools/language-server@1589
npx https://pkg.pr.new/@herb-tools/linter@1589

commit: 79e0ef5

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 3, 2026

🌿 Interactive Playground and Documentation Preview

A preview deployment has been built for this pull request. Try out the changes live in the interactive playground:


🌱 Grown from commit 79e0ef5


✅ Preview deployment has been cleaned up.

@marcoroth marcoroth changed the title Linter: Fix --upgrade for parallel processing Linter: Fix --upgrade to not use parallel processing Apr 3, 2026
@marcoroth marcoroth merged commit a4629c8 into main Apr 3, 2026
20 checks passed
@marcoroth marcoroth deleted the fix-upgrade-parallel-processing branch April 3, 2026 01:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Linter CLI: Upgrading fails to disable new rules that report offenses

1 participant