refactor(linter): remove dead code #24408
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 173 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.309
Shallow Review Depth
shallow_review_depth
0.289
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #24408"
general
weight: 0.35
connorshea
AI Disclosure: This was generated with Claude Code, reviewed by me for correctness and to ensure none of this was code that has been modified recently and is in the middle of being modified (none of it is).
Removes 8 functions in
oxc_linterthat no longer have any callers and haven't been touched in >6 months.LintContext::with_plugin_name/with_rule_name/with_rule_fix_capabilities/with_severity—ContextHost::spawnandspawn_for_testconstructLintContextwith struct literals and set every one of these fields directly, so the builder methods are never called.ConfigStoreBuilder::with_categories/with_overrides— thecategoriesandoverridesfields are populated through other paths.RuleFixMeta::is_pending.ArgsOption::is_after_used— its siblingsis_allandis_noneare both live inallowed.rs, but theAfterUsedcase is handled there with adebug_assert_eq!against the variant instead, so this accessor never got a caller.Also drops two imports that became unused.
This is arguably a breaking change as all of these are public methods? I'm not sure if that was the reason for us keeping them around or if these were all mistakenly left behind. And I don't believe we encourage usage of/publish the linter to crates.io anyway.
🤖 Generated with Claude Code