refactor(linter): extract reusable config discovery helper#21640
Merged
graphite-app[bot] merged 1 commit intomainfrom Apr 22, 2026
Merged
Conversation
This was referenced Apr 22, 2026
Contributor
Author
This was referenced Apr 22, 2026
dac94c8 to
e978e6a
Compare
1c7a595 to
63ec351
Compare
e978e6a to
2fc70db
Compare
4530ee7 to
ca4e3b0
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
This PR refactors oxlint’s configuration file discovery by extracting reusable discovery logic into a dedicated helper, and updates expected diagnostic output to match the new behavior.
Changes:
- Introduces
ConfigDiscovery+ConfigFileNamesto centralize config file matching and conflict detection. - Refactors
config_loaderto use the new helper for directory scanning and single-config selection. - Updates a fixture snapshot to reflect changed ordering in the conflict diagnostic.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| apps/oxlint/test/fixtures/js_config_nested_conflict/output.snap.md | Updates expected conflict message output order in the fixture snapshot. |
| apps/oxlint/src/config_loader.rs | Replaces inline config-discovery logic with calls to ConfigDiscovery (including unique-config selection). |
| apps/oxlint/src/config_discovery.rs | Adds reusable discovery structs and adjusts conflict message generation (test-only sorting). |
Contributor
Author
Merge activity
|
c371af9 to
9c4815f
Compare
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.