sonar-dotnet
sonar-dotnet copied to clipboard
Fix S6678 FN: Lowercase placeholders in interpolated string
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 PascalCased
Actual behavior
no error
Known workarounds
Related information
9.29.0.95321
Hello @sm-g,
Thank you for reporting this issue.
I confirm this is a false negative.
This issue will be tracked in NET-1258 (not publicly accessible)
This has been fixed in 10.12