You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(linter): use aliases when parsing cli rules (#14912)
- Fixes#14906
#### What went wrong
- `parse_rule_key` has the logic for aliasing, and it is called by
`OxlintRules`, but only during deserialization.
- `CliRunner`, via `ConfigStoreBuilder`, instantiates `OxlintRules`
directly. No post processing, aliasing doesn't take place.
#### Fix
- Aliasing logic in `parse_rule_key` is split off as
`unalias_plugin_name`.
- `unalias_plugin_name` is now called by `ConfigStoreBuilder`.
- `LintFilterKind::parse` seemed like a better place at first, but
lifetimes required cloning.
0 commit comments