Skip to content

Conversation

@arendjr
Copy link
Contributor

@arendjr arendjr commented May 16, 2025

Summary

Fixes #6031: biome check calls the analyzer twice, once for formatting and once for linting. But it handed the linter plugins to both invocations, causing them to run twice. Worse, in the formatting invocation, the suppressions didn't work either.

Also fixes an issue that could cause certain Grit queries to report double diagnostics.

Test Plan

Test added.

@arendjr arendjr requested review from a team May 16, 2025 12:28
@github-actions github-actions bot added A-CLI Area: CLI A-Project Area: project A-Linter Area: linter L-Grit Language: GritQL labels May 16, 2025
@arendjr arendjr changed the title Fix plugin suppression fix(analyzer): fix plugin diagnostic suppression + resolve double diagnostics May 16, 2025
Copy link
Member

@ematipico ematipico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! I can see from the snapshots that a diagnostic is gone. I suppose we didn't check me thoroughly

@arendjr arendjr force-pushed the fix-plugin-suppression branch from 8e36ba5 to ce4c73b Compare May 16, 2025 12:46
@arendjr
Copy link
Contributor Author

arendjr commented May 16, 2025

Yes, you're right. I must've checked one in with a duplicated diagnostic 🙈

@codspeed-hq
Copy link

codspeed-hq bot commented May 16, 2025

CodSpeed Performance Report

Merging #6035 will not alter performance

Comparing arendjr:fix-plugin-suppression (ce4c73b) with main (716a6d1)

Summary

✅ 95 untouched benchmarks

@arendjr arendjr merged commit 9ff9029 into biomejs:main May 16, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-CLI Area: CLI A-Linter Area: linter A-Project Area: project L-Grit Language: GritQL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Plugin suppression seems to only partially work

2 participants