-
-
Notifications
You must be signed in to change notification settings - Fork 720
refactor(linter): rename LintRunner to CliRunner
#14050
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(linter): rename LintRunner to CliRunner
#14050
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR renames the LintRunner struct to CliRunner throughout the codebase to better reflect its role as a general CLI runner rather than being specifically tied to linting functionality.
- Renamed the main struct from
LintRunnertoCliRunner - Updated all references and imports across multiple files
- Enhanced linter configuration with conditional unused directive reporting
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| apps/oxlint/src/tester.rs | Updated imports and instantiation calls to use CliRunner |
| apps/oxlint/src/run.rs | Updated import and usage of the renamed struct |
| apps/oxlint/src/lint.rs | Renamed struct definition, implementations, and test references; added conditional linter configuration |
| apps/oxlint/src/lib.rs | Updated public re-export to use new CliRunner name |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
d17e224 to
06b61a6
Compare
Merge activity
|
This commit renames `LintRunner` to `CliRunner` . This change is being made in preparation for introducing a new `LintRunner` component in the future. In future, `LintRunner` (living in `oxc_linter`) will handle the tsgolint/oxlint coordination (and state storage between the two phases)
06b61a6 to
3a706a7
Compare

This commit renames
LintRunnertoCliRunner. This change is being made in preparation for introducing a newLintRunnercomponent in the future.In future,
LintRunner (living inoxc_linter) will handle the tsgolint/oxlint coordination (and state storage between the two phases)