fix(linter): prevent squashed inline comments from being "promoted" to cover the whole rule category.#6649
Conversation
FIXME: merging suppression comments still breaks their individual used status
|
CodSpeed Performance ReportMerging #6649 will not alter performanceComparing Summary
|
ematipico
left a comment
There was a problem hiding this comment.
Great fix! Thank you @sterliakov
Can you please add a changeset? https://github.com/biomejs/biome/blob/main/CONTRIBUTING.md#create-a-changeset
|
Closing in favour or #6650 to avoid accidental merge, the branch remains available, this PR can be reopened if needed. |
Summary
Fixes #6621
Prevent squashed inline comments from being "promoted" to cover the whole rule category.
This PR might be superseded by #6650 if that aligns with the maintainers opinion - please take a look!
Test Plan
Added a new test category that supports enabling multiple rules inline. Such tests must start with one or more lines of the shape
Added a testfile with multiple inline suppression comments. If the core idea of this PR is approved, I'll add more testcases covering non-jsx sources (that probably shouldn't matter, but there are too few tests for ignore comments, let's add more).