( ruleId: string, configs: Linter.Config[], )
| 82 | } |
| 83 | |
| 84 | function findRuleMeta( |
| 85 | ruleId: string, |
| 86 | configs: Linter.Config[], |
| 87 | ): Rule.RuleMetaData | undefined { |
| 88 | const { plugin, name } = parseRuleId(ruleId); |
| 89 | if (!plugin) { |
| 90 | return findBuiltinRuleMeta(name); |
| 91 | } |
| 92 | return findPluginRuleMeta(plugin, name, configs); |
| 93 | } |
| 94 | |
| 95 | function findBuiltinRuleMeta(name: string): Rule.RuleMetaData | undefined { |
| 96 | const rule = builtinRules.get(name); |
no test coverage detected