Closed Jake-Derrick closed 3 weeks ago
Please provide a succinct description of your issue. Also please provide the rule ID (e.g. S1234)
const string localConstant = "local"; logger.Log(LogLevel.Warning, $"Constant: {localConstant}" + $"Constant2: {localConstant}"); // Non-Compliant FP logger.Log(LogLevel.Warning, $"Constant: {localConstant} Constant2: {localConstant}"); // Compliant
Rule S2629 not raised
Rule S2629 raised
Use a single interpolated string
9.27.0.93347
17.10.1
MSBuild 6.2
Hello @Jake-Derrick,
Thank you for reporting this issue.
I confirm this is a false positive.
Description
Please provide a succinct description of your issue. Also please provide the rule ID (e.g. S1234)
Repro steps
Expected behavior
Rule S2629 not raised
Actual behavior
Rule S2629 raised
Known workarounds
Use a single interpolated string
Related information
9.27.0.93347
17.10.1
MSBuild 6.2