Skip to content

refactor(oxlint): move --print-config into a own file#18506

Merged
graphite-app[bot] merged 1 commit intomainfrom
01-24-refactor_oxlint_move_--print-config_into_a_own_file
Jan 25, 2026
Merged

refactor(oxlint): move --print-config into a own file#18506
graphite-app[bot] merged 1 commit intomainfrom
01-24-refactor_oxlint_move_--print-config_into_a_own_file

Conversation

@Sysix
Copy link
Member

@Sysix Sysix commented Jan 24, 2026

No description provided.

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

Sysix commented Jan 24, 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.

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 refactors the --print-config functionality by extracting it into a dedicated module file, improving code organization and maintainability.

Changes:

  • Extracted --print-config logic into a new run_print_config function in a separate module
  • Reorganized the execution flow in lint.rs to check for --print-config earlier with an early return
  • Modified ownership patterns to use cloning where needed to support the early return

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
apps/oxlint/src/mode/print_config.rs New file containing the extracted run_print_config function that handles the --print-config flag
apps/oxlint/src/mode/mod.rs Added module declaration and export for the new print_config module
apps/oxlint/src/lint.rs Refactored to call the extracted run_print_config function earlier in the execution flow, with ownership adjustments to support the early return

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

@camc314 camc314 self-assigned this Jan 25, 2026
@camc314 camc314 added the 0-merge Merge with Graphite Merge Queue label Jan 25, 2026
@graphite-app graphite-app bot changed the base branch from 01-24-refactor_oxlint_move_--init_logic_into_a_own_file to graphite-base/18506 January 25, 2026 16:24
Copy link
Contributor

camc314 commented Jan 25, 2026

Merge activity

  • Jan 25, 4:24 PM UTC: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Jan 25, 4:25 PM UTC: camc314 added this pull request to the Graphite merge queue.
  • Jan 25, 4:32 PM UTC: The Graphite merge queue couldn't merge this PR because it had merge conflicts.
  • Jan 25, 4:32 PM UTC: Graphite rebased this pull request, because this pull request is set to merge when ready.
  • Jan 25, 4:37 PM UTC: camc314 added this pull request to the Graphite merge queue.
  • Jan 25, 4:44 PM UTC: Merged by the Graphite merge queue.

@graphite-app graphite-app bot changed the base branch from graphite-base/18506 to main January 25, 2026 16:30
@graphite-app graphite-app bot added 0-merge Merge with Graphite Merge Queue and removed 0-merge Merge with Graphite Merge Queue labels Jan 25, 2026
@camc314 camc314 force-pushed the 01-24-refactor_oxlint_move_--print-config_into_a_own_file branch from f039b0b to 24936c1 Compare January 25, 2026 16:32
@graphite-app graphite-app bot force-pushed the 01-24-refactor_oxlint_move_--print-config_into_a_own_file branch from 24936c1 to 427b730 Compare January 25, 2026 16:38
@graphite-app graphite-app bot merged commit 427b730 into main Jan 25, 2026
19 checks passed
@graphite-app graphite-app bot deleted the 01-24-refactor_oxlint_move_--print-config_into_a_own_file branch January 25, 2026 16:44
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Jan 25, 2026
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.

2 participants

Comments