fix(linter): remove confusing help text for now (#7081)

It's possible that the rule may not exist at all, or it's part of a
disabled plugin. The help text doesn't give a clue as to which is the
case currently, so it's probably less confusing to just omit it
completely.
This commit is contained in:
Cam McHenry 2024-11-01 23:50:42 -04:00 committed by GitHub
parent f543a8d495
commit 38d1f78754
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -126,12 +126,9 @@ impl Runner for LintRunner {
Err(err) => match err {
LinterBuilderError::UnknownRules { rules } => {
let rules = rules.iter().map(|r| r.full_name()).collect::<Vec<_>>().join("\n");
let error = Error::from(
OxcDiagnostic::warn(format!(
let error = Error::from(OxcDiagnostic::warn(format!(
"The following rules do not match the currently supported rules:\n{rules}"
))
.with_help("Check that the plugin that contains this rule is enabled."),
);
)));
return CliRunResult::LintError { error: format!("{error:?}") };
}
},