SonarSource/sonar-dotnet

Fix S1144 FP: Getters/Setters of property with attribute are being flagged

Closed this issue · 1 comments

Description

Members with an attribute are being flagged. The documentation states they should be exceptions to the rule.
image

Repro steps

image

Expected behavior

The setter should not be flagged.

Actual behavior

The setter is flagged.

Related information

SonarAnalyzer.CSharp: 9.24.0.89429
Visual Studio: 17.9.6
Dotnet version: .NET 8
Operating System: Windows 10 Enterprise, 21H2

Hey there,
I can confirm this is an FP, and I added it to our backlog to track it.
I will try to come up with a fix for you soon, as the case seems isolated to properties.

Thanks for raising this!
Feel free to track this ticket, it will be closed when the fix is merged.