Skip to content

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

@Daeymon

Description

@Daeymon

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

Metadata

Metadata

Labels

False PositiveRule IS triggered when it shouldn't be.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions