[ty] Refine message for why a rule is enabled (#18038)
This commit is contained in:
@@ -318,10 +318,13 @@ impl Drop for LintDiagnosticGuard<'_, '_> {
|
||||
diag.sub(SubDiagnostic::new(
|
||||
Severity::Info,
|
||||
match self.source {
|
||||
LintSource::Default => format!("`{}` is enabled by default", diag.id()),
|
||||
LintSource::Cli => format!("`{}` was selected on the command line", diag.id()),
|
||||
LintSource::Default => format!("rule `{}` is enabled by default", diag.id()),
|
||||
LintSource::Cli => format!("rule `{}` was selected on the command line", diag.id()),
|
||||
LintSource::File => {
|
||||
format!("`{}` was selected in the configuration file", diag.id())
|
||||
format!(
|
||||
"rule `{}` was selected in the configuration file",
|
||||
diag.id()
|
||||
)
|
||||
}
|
||||
},
|
||||
));
|
||||
|
||||
Reference in New Issue
Block a user