Skip to content

refactor(linter/plugins): split getFixes into 2 functions#18958

Merged
graphite-app[bot] merged 1 commit intomainfrom
om/02-04-refactor_linter_plugins_split_getfixes_into_2_functions
Feb 5, 2026
Merged

refactor(linter/plugins): split getFixes into 2 functions#18958
graphite-app[bot] merged 1 commit intomainfrom
om/02-04-refactor_linter_plugins_split_getfixes_into_2_functions

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Feb 5, 2026

Pure refactor. Split getFixes into 2 functions. New function getFixesFromFixFn calls a fix function and processes the fixes it returns. getFixesFromFixFn will also be used for getting the fixes for suggestions in a later PR.

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

overlookmotel commented Feb 5, 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 getFixes function by splitting it into two separate functions to improve code modularity and enable code reuse for future features.

Changes:

  • Split getFixes into two functions: getFixes (public) and getFixesFromFixFn (private)
  • getFixes now handles fix function type checking and isFixable validation
  • getFixesFromFixFn handles calling the fix function and processing its return value

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

@overlookmotel overlookmotel self-assigned this Feb 5, 2026
@graphite-app graphite-app bot added the 0-merge Merge with Graphite Merge Queue label Feb 5, 2026
@graphite-app
Copy link
Contributor

graphite-app bot commented Feb 5, 2026

Merge activity

Pure refactor. Split `getFixes` into 2 functions. New function `getFixesFromFixFn` calls a fix function and processes the fixes it returns. `getFixesFromFixFn` will also be used for getting the fixes for suggestions in a later PR.
@graphite-app graphite-app bot force-pushed the om/02-04-refactor_linter_plugins_split_getfixes_into_2_functions branch from 94120f2 to 28f9fdb Compare February 5, 2026 02:24
@graphite-app graphite-app bot merged commit 28f9fdb into main Feb 5, 2026
20 checks passed
@graphite-app graphite-app bot deleted the om/02-04-refactor_linter_plugins_split_getfixes_into_2_functions branch February 5, 2026 02:30
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Feb 5, 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 A-linter-plugins Area - Linter JS plugins 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