Skip to content

refactor(linter): split DiscoveredConfigFile into it's own module#21634

Merged
graphite-app[bot] merged 1 commit intomainfrom
c/04-22-refactor_oxlint_split_discoveredconfigfile_into_it_s_own_module
Apr 22, 2026
Merged

refactor(linter): split DiscoveredConfigFile into it's own module#21634
graphite-app[bot] merged 1 commit intomainfrom
c/04-22-refactor_oxlint_split_discoveredconfigfile_into_it_s_own_module

Conversation

@camc314
Copy link
Copy Markdown
Contributor

@camc314 camc314 commented Apr 22, 2026

No description provided.

Copy link
Copy Markdown
Contributor Author

camc314 commented Apr 22, 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 changes, fast-track this PR to the front of the merge queue

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
Copy Markdown
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 oxlint config discovery by moving the DiscoveredConfigFile type into a dedicated module, reducing responsibility in config_loader.

Changes:

  • Introduced new config_discovery module containing DiscoveredConfigFile and its path() helper.
  • Updated config_loader (and its tests) to import DiscoveredConfigFile from the new module.
  • Wired the new module into the crate via lib.rs.

Reviewed changes

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

File Description
apps/oxlint/src/lib.rs Registers the new config_discovery module in the crate.
apps/oxlint/src/config_loader.rs Removes the in-file enum definition and updates imports/usages to the new module.
apps/oxlint/src/config_discovery.rs New module defining DiscoveredConfigFile and its path accessor.

@graphite-app graphite-app Bot changed the base branch from c/04-22-refactor_oxlint_rename_discoveredconfig_to_discoveredconfigfile_ to graphite-base/21634 April 22, 2026 09:27
@camc314 camc314 added the 0-merge Merge with Graphite Merge Queue label Apr 22, 2026
@graphite-app graphite-app Bot force-pushed the c/04-22-refactor_oxlint_split_discoveredconfigfile_into_it_s_own_module branch from ca0dbad to 04bbb33 Compare April 22, 2026 09:31
@graphite-app graphite-app Bot force-pushed the graphite-base/21634 branch from 23de7f2 to f2cb085 Compare April 22, 2026 09:31
@graphite-app graphite-app Bot changed the base branch from graphite-base/21634 to main April 22, 2026 09:32
Copy link
Copy Markdown
Contributor Author

camc314 commented Apr 22, 2026

Merge activity

@graphite-app graphite-app Bot force-pushed the c/04-22-refactor_oxlint_split_discoveredconfigfile_into_it_s_own_module branch from 04bbb33 to ad793d9 Compare April 22, 2026 09:32
@graphite-app graphite-app Bot force-pushed the c/04-22-refactor_oxlint_split_discoveredconfigfile_into_it_s_own_module branch from ad793d9 to feaf85c Compare April 22, 2026 09:44
@camc314 camc314 changed the title refactor(oxlint): split DiscoveredConfigFile into it's own module refactor(linter): split DiscoveredConfigFile into it's own module Apr 22, 2026
@graphite-app graphite-app Bot merged commit feaf85c into main Apr 22, 2026
26 checks passed
@graphite-app graphite-app Bot deleted the c/04-22-refactor_oxlint_split_discoveredconfigfile_into_it_s_own_module branch April 22, 2026 09:55
@graphite-app graphite-app Bot removed the 0-merge Merge with Graphite Merge Queue label Apr 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants