Skip to content

test(linter/plugins): reduce nesting in test plugin code#19053

Merged
graphite-app[bot] merged 1 commit intomainfrom
om/02-05-test_linter_plugins_reduce_nesting_in_test_plugin_code
Feb 6, 2026
Merged

test(linter/plugins): reduce nesting in test plugin code#19053
graphite-app[bot] merged 1 commit intomainfrom
om/02-05-test_linter_plugins_reduce_nesting_in_test_plugin_code

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Feb 6, 2026

Pure refactor of tests. Reduce nesting of code by splitting into vars for the Rule and the Plugin. This is preparation for adding to this test fixture in later PRs.

Copy link
Member Author

overlookmotel commented Feb 6, 2026


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.

@github-actions github-actions bot added A-linter Area - Linter A-cli Area - CLI A-linter-plugins Area - Linter JS plugins labels Feb 6, 2026
@github-actions github-actions bot added the C-test Category - Testing. Code is missing test cases, or a PR is adding them label Feb 6, 2026
@overlookmotel overlookmotel marked this pull request as ready for review February 6, 2026 11:33
Copilot AI review requested due to automatic review settings February 6, 2026 11:33
Copy link
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

Refactors the fixes test fixture plugin to reduce nesting by extracting the rule definition into a standalone rule variable, preparing the fixture for future expansion while keeping behavior unchanged.

Changes:

  • Import Rule and extract the fixes rule into const rule: Rule = { ... }.
  • Recompose plugin: Plugin using rules: { fixes: rule } with the same plugin metadata.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@graphite-app
Copy link
Contributor

graphite-app bot commented Feb 6, 2026

Merge activity

Pure refactor of tests. Reduce nesting of code by splitting into vars for the `Rule` and the `Plugin`. This is preparation for adding to this test fixture in later PRs.
@graphite-app graphite-app bot force-pushed the om/02-06-refactor_linter_move_logic_for_combining_jsfix_es_into_separate_function branch from 46334f3 to b1ac16a Compare February 6, 2026 12:57
@graphite-app graphite-app bot force-pushed the om/02-05-test_linter_plugins_reduce_nesting_in_test_plugin_code branch from 3cde087 to a8ae9a9 Compare February 6, 2026 12:57
Base automatically changed from om/02-06-refactor_linter_move_logic_for_combining_jsfix_es_into_separate_function to main February 6, 2026 13:02
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Feb 6, 2026
@graphite-app graphite-app bot merged commit a8ae9a9 into main Feb 6, 2026
20 checks passed
@graphite-app graphite-app bot deleted the om/02-05-test_linter_plugins_reduce_nesting_in_test_plugin_code branch February 6, 2026 13:04
OskarLebuda pushed a commit to OskarLebuda/oxc that referenced this pull request Feb 17, 2026
…#19053)

Pure refactor of tests. Reduce nesting of code by splitting into vars for the `Rule` and the `Plugin`. This is preparation for adding to this test fixture in later PRs.
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.

1 participant

Comments