Skip to content

test(linter/plugins): conformance tester allow filter array#16692

Merged
graphite-app[bot] merged 1 commit intomainfrom
12-10-test_linter_plugins_conformance_tester_allow_filter_array
Dec 10, 2025
Merged

test(linter/plugins): conformance tester allow filter array#16692
graphite-app[bot] merged 1 commit intomainfrom
12-10-test_linter_plugins_conformance_tester_allow_filter_array

Conversation

@overlookmotel
Copy link
Copy Markdown
Member

@overlookmotel overlookmotel commented Dec 10, 2025

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

@github-actions github-actions bot added A-linter Area - Linter A-cli Area - CLI A-linter-plugins Area - Linter JS plugins C-test Category - Testing. Code is missing test cases, or a PR is adding them labels Dec 10, 2025
Copy link
Copy Markdown
Member Author


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

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.

@overlookmotel overlookmotel marked this pull request as ready for review December 10, 2025 12:23
Copilot AI review requested due to automatic review settings December 10, 2025 12:23
@overlookmotel overlookmotel self-assigned this Dec 10, 2025
@overlookmotel overlookmotel added the 0-merge Merge with Graphite Merge Queue label Dec 10, 2025
Copy link
Copy Markdown
Member Author

overlookmotel commented Dec 10, 2025

Merge activity

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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 just string
  • Updated filtering logic in both run.ts and rule_tester.ts to 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.
@graphite-app graphite-app bot force-pushed the 12-10-test_linter_plugins_conformance_tester_allow_filter_array branch from 6b2f8af to 5d4e654 Compare December 10, 2025 13:36
@graphite-app graphite-app bot merged commit 5d4e654 into main Dec 10, 2025
18 checks passed
@graphite-app graphite-app bot deleted the 12-10-test_linter_plugins_conformance_tester_allow_filter_array branch December 10, 2025 13:42
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Dec 10, 2025
Copilot AI pushed a commit that referenced this pull request Dec 10, 2025
#16659 added filtering to the conformance tester. Make the filters more flexible by accepting an array of strings, as well as a single string.
taearls pushed a commit to taearls/oxc that referenced this pull request Dec 11, 2025
…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.
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-linter-plugins Area - Linter JS plugins C-test Category - Testing. Code is missing test cases, or a PR is adding them

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants