sonar-dotnet icon indicating copy to clipboard operation
sonar-dotnet copied to clipboard

Fix S6678 FN: Lowercase placeholders in interpolated string

Open sm-g opened this issue 1 year ago • 1 comments

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

sm-g avatar Jul 23 '24 08:07 sm-g

Hello @sm-g,

Thank you for reporting this issue.

I confirm this is a false negative.

sebastien-marichal avatar Jul 24 '24 08:07 sebastien-marichal

This issue will be tracked in NET-1258 (not publicly accessible)

This has been fixed in 10.12

Tim-Pohlmann avatar Jun 18 '25 13:06 Tim-Pohlmann