refactor(linter): split DiscoveredConfigFile into it's own module#21634
Merged
graphite-app[bot] merged 1 commit intomainfrom Apr 22, 2026
Conversation
Contributor
Author
This was referenced Apr 22, 2026
Contributor
There was a problem hiding this comment.
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_discoverymodule containingDiscoveredConfigFileand itspath()helper. - Updated
config_loader(and its tests) to importDiscoveredConfigFilefrom 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. |
ca0dbad to
04bbb33
Compare
23de7f2 to
f2cb085
Compare
Contributor
Author
Merge activity
|
04bbb33 to
ad793d9
Compare
ad793d9 to
feaf85c
Compare
DiscoveredConfigFile into it's own moduleDiscoveredConfigFile into it's own module
This was referenced Apr 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

No description provided.