refactor(linter): rename DEFAULT_OXLINTRC to `DEFAULT_OXLINTRC_NAME#18666
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. |
There was a problem hiding this comment.
Pull request overview
This PR consistently renames the default oxlint configuration file constant from DEFAULT_OXLINTRC to DEFAULT_OXLINTRC_NAME across the CLI, LSP, and tests to better reflect its semantics as a filename.
Changes:
- Renamed the constant in
lib.rstoDEFAULT_OXLINTRC_NAMEwhile keeping its value.oxlintrc.jsonunchanged. - Updated all usages of the constant in CLI init logic, LSP server configuration resolution, and config walker to reference
DEFAULT_OXLINTRC_NAME. - Adjusted tests in
lint.rsto useDEFAULT_OXLINTRC_NAMEto ensure configuration initialization behavior remains covered.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| apps/oxlint/src/lib.rs | Renames the default config filename constant to DEFAULT_OXLINTRC_NAME, establishing the new identifier. |
| apps/oxlint/src/mode/init.rs | Uses DEFAULT_OXLINTRC_NAME when writing the default configuration file during --init. |
| apps/oxlint/src/lsp/server_linter.rs | Switches LSP default config path handling to use DEFAULT_OXLINTRC_NAME. |
| apps/oxlint/src/lsp/config_walker.rs | Updates config discovery to compare filenames against DEFAULT_OXLINTRC_NAME. |
| apps/oxlint/src/lint.rs | Uses DEFAULT_OXLINTRC_NAME in config lookup logic and associated tests, keeping behavior intact. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Merge activity
|
122aff7 to
25a2416
Compare

No description provided.