Skip to content

refactor(linter/plugins): move LintFileReturnValue struct to above wrap_lint_file#16457

Merged
graphite-app[bot] merged 1 commit intomainfrom
12-03-refactor_linter_plugins_move_lintfilereturnvalue_struct_to_above_wrap_lint_file_
Dec 3, 2025
Merged

refactor(linter/plugins): move LintFileReturnValue struct to above wrap_lint_file#16457
graphite-app[bot] merged 1 commit intomainfrom
12-03-refactor_linter_plugins_move_lintfilereturnvalue_struct_to_above_wrap_lint_file_

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Dec 3, 2025

Pure refactor. Move this struct to above the function which uses it.

@github-actions github-actions bot added the A-linter Area - Linter label Dec 3, 2025
@github-actions github-actions bot added A-cli Area - CLI C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior labels Dec 3, 2025
Copy link
Member Author

overlookmotel commented Dec 3, 2025


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 force-pushed the 12-03-perf_linter_plugins_move_result-processing_work_off_main_js_thread branch from d81c9ca to 10cbdbf Compare December 3, 2025 16:51
@overlookmotel overlookmotel force-pushed the 12-03-refactor_linter_plugins_move_lintfilereturnvalue_struct_to_above_wrap_lint_file_ branch 2 times, most recently from ac73de7 to 7563199 Compare December 3, 2025 17:06
@overlookmotel overlookmotel force-pushed the 12-03-perf_linter_plugins_move_result-processing_work_off_main_js_thread branch 2 times, most recently from 7b4c3e7 to fe167bb Compare December 3, 2025 17:08
@overlookmotel overlookmotel force-pushed the 12-03-refactor_linter_plugins_move_lintfilereturnvalue_struct_to_above_wrap_lint_file_ branch from 7563199 to 3330bb1 Compare December 3, 2025 17:08
@overlookmotel overlookmotel marked this pull request as ready for review December 3, 2025 17:20
Copilot AI review requested due to automatic review settings December 3, 2025 17:20
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

This PR performs a pure refactor by relocating the LintFileReturnValue enum definition to immediately precede the wrap_lint_file function that uses it, improving code organization and readability.

Key Changes:

  • Moved LintFileReturnValue enum from after wrap_load_plugin to before wrap_lint_file

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

@overlookmotel overlookmotel force-pushed the 12-03-perf_linter_plugins_move_result-processing_work_off_main_js_thread branch from fe167bb to a9024d6 Compare December 3, 2025 17:30
@overlookmotel overlookmotel force-pushed the 12-03-refactor_linter_plugins_move_lintfilereturnvalue_struct_to_above_wrap_lint_file_ branch from 3330bb1 to 9992bac Compare December 3, 2025 17:30
@overlookmotel overlookmotel self-assigned this Dec 3, 2025
@graphite-app graphite-app bot added the 0-merge Merge with Graphite Merge Queue label Dec 3, 2025
@graphite-app
Copy link
Contributor

graphite-app bot commented Dec 3, 2025

Merge activity

…`wrap_lint_file` (#16457)

Pure refactor. Move this struct to above the function which uses it.
@graphite-app graphite-app bot force-pushed the 12-03-perf_linter_plugins_move_result-processing_work_off_main_js_thread branch from a9024d6 to 793b989 Compare December 3, 2025 19:07
@graphite-app graphite-app bot force-pushed the 12-03-refactor_linter_plugins_move_lintfilereturnvalue_struct_to_above_wrap_lint_file_ branch from 9992bac to 34dacba Compare December 3, 2025 19:08
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Dec 3, 2025
Base automatically changed from 12-03-perf_linter_plugins_move_result-processing_work_off_main_js_thread to main December 3, 2025 19:14
@graphite-app graphite-app bot merged commit 34dacba into main Dec 3, 2025
19 checks passed
@graphite-app graphite-app bot deleted the 12-03-refactor_linter_plugins_move_lintfilereturnvalue_struct_to_above_wrap_lint_file_ branch December 3, 2025 19:17
taearls pushed a commit to taearls/oxc that referenced this pull request Dec 11, 2025
…`wrap_lint_file` (oxc-project#16457)

Pure refactor. Move this struct to above the function which uses it.
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 C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants