Skip to content

refactor(oxfmt): load_ignore_paths() also checks existence#17351

Merged
graphite-app[bot] merged 1 commit intomainfrom
12-25-refactor_oxfmt_load_ignore_paths_also_checks_existence
Dec 25, 2025
Merged

refactor(oxfmt): load_ignore_paths() also checks existence#17351
graphite-app[bot] merged 1 commit intomainfrom
12-25-refactor_oxfmt_load_ignore_paths_also_checks_existence

Conversation

@leaysgur
Copy link
Member

@leaysgur leaysgur commented Dec 25, 2025

Pure refactoring.

Copilot AI review requested due to automatic review settings December 25, 2025 04:00
@github-actions github-actions bot added A-cli Area - CLI A-formatter Area - Formatter C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior labels Dec 25, 2025
Copy link
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.

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 load_ignore_paths function to centralize file existence validation by moving the check from the caller into the function itself.

  • Changed load_ignore_paths return type from Vec<PathBuf> to Result<Vec<PathBuf>, String> to handle validation errors
  • Moved existence check for explicitly provided ignore paths into load_ignore_paths function
  • Added clarifying comments to distinguish between mandatory explicitly-provided ignore paths and optional default ignore files

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

@leaysgur leaysgur changed the title refactor(oxfmt): load_ignore_paths also checks existence refactor(oxfmt): load_ignore_paths() also checks existence Dec 25, 2025
@graphite-app graphite-app bot added the 0-merge Merge with Graphite Merge Queue label Dec 25, 2025
@graphite-app
Copy link
Contributor

graphite-app bot commented Dec 25, 2025

Merge activity

@graphite-app graphite-app bot force-pushed the 12-25-refactor_oxfmt_load_ignore_paths_also_checks_existence branch from 1badd71 to 30e5873 Compare December 25, 2025 04:37
@graphite-app graphite-app bot merged commit 30e5873 into main Dec 25, 2025
18 checks passed
@graphite-app graphite-app bot deleted the 12-25-refactor_oxfmt_load_ignore_paths_also_checks_existence branch December 25, 2025 04:44
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Dec 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-cli Area - CLI A-formatter Area - Formatter 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