Open sm-g opened 1 month ago
S6678 "Use PascalCase for named placeholders" did not find lowercased value
Logger.LogDebug($"{nameof(Foo)} filter: {{filter}}", search.Filter);
S6678, because {filter} is not PascalCased
{filter}
no error
9.29.0.95321
Hello @sm-g,
Thank you for reporting this issue.
I confirm this is a false negative.
Description
S6678 "Use PascalCase for named placeholders" did not find lowercased value
Repro steps
Logger.LogDebug($"{nameof(Foo)} filter: {{filter}}", search.Filter);
Expected behavior
S6678, because
{filter}
is not PascalCasedActual behavior
no error
Known workarounds
Related information
9.29.0.95321