test(linter/plugins): conformance tester allow filter array#16692
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Merge activity
|
There was a problem hiding this comment.
Pull request overview
This PR enhances the conformance tester's filtering capabilities by allowing filter values to be either a single string or an array of strings, making it easier to debug multiple specific test cases or rules simultaneously.
Key changes:
- Modified filter type definition to accept
string | string[]instead of juststring - Updated filtering logic in both
run.tsandrule_tester.tsto handle array-based filtering using.includes()
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
apps/oxlint/conformance/src/filter.ts |
Updated type definition to allow Filter to be either a single string or an array of strings |
apps/oxlint/conformance/src/run.ts |
Modified rule name filtering logic to check if filter is an array and use .includes() for membership testing |
apps/oxlint/conformance/src/rule_tester.ts |
Modified test code filtering logic to check if filter is an array and use .includes() for membership testing |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
#16659 added filtering to the conformance tester. Make the filters more flexible by accepting an array of strings, as well as a single string.
6b2f8af to
5d4e654
Compare
#16659 added filtering to the conformance tester. Make the filters more flexible by accepting an array of strings, as well as a single string.
…ect#16692) oxc-project#16659 added filtering to the conformance tester. Make the filters more flexible by accepting an array of strings, as well as a single string.

#16659 added filtering to the conformance tester. Make the filters more flexible by accepting an array of strings, as well as a single string.