refactor(linter): extract config searching functions to their own file#18673
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via 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. |
0b780a0 to
e11cb0f
Compare
There was a problem hiding this comment.
Pull request overview
Refactors oxlint’s config discovery by centralizing config file search logic in config_loader, and updating both CLI and LSP call sites to use the shared helpers.
Changes:
- Added shared config discovery helpers for ancestor-walk (CLI) and tree-walk (LSP) in
config_loader.rs. - Updated LSP nested-config discovery to use
discover_configs_in_tree. - Updated CLI nested-config discovery to use
discover_configs_in_ancestorsand improved the build-error message to include the config path.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| apps/oxlint/src/lsp/server_linter.rs | Switches LSP nested config discovery to the shared tree-walk helper. |
| apps/oxlint/src/lint.rs | Replaces inline ancestor-walk config discovery with shared helper; improves config build error output. |
| apps/oxlint/src/config_loader.rs | Introduces shared config discovery functions (ancestor + tree) alongside existing config loading logic. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
9392bdd to
fff2a9f
Compare
e11cb0f to
1e332c9
Compare
fff2a9f to
a88ed23
Compare
1e332c9 to
3089a77
Compare
3089a77 to
31aada2
Compare
Merge activity
|
#18673) move the funcitons that search for config files out of sever_linter.rs/lint.rs into config_loader so that they're all in the same place
31aada2 to
5b11610
Compare

move the funcitons that search for config files out of sever_linter.rs/lint.rs into config_loader so that they're all in the same place