You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gregory-paidis-sonarsource
changed the title
Fix S1144 FP: Members with attribute are being flagged.
Fix S1144 FP: Getters/Setters of property with attribute are being flagged.
May 1, 2024
gregory-paidis-sonarsource
changed the title
Fix S1144 FP: Getters/Setters of property with attribute are being flagged.
Fix S1144 FP: Getters/Setters of property with attribute are being flagged
May 1, 2024
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.
Description
Members with an attribute are being flagged. The documentation states they should be exceptions to the rule.
![image](https://private-user-images.githubusercontent.com/29780145/326403350-68e26207-8659-4a09-b4ae-98eaca959403.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5MjkyMjQsIm5iZiI6MTczODkyODkyNCwicGF0aCI6Ii8yOTc4MDE0NS8zMjY0MDMzNTAtNjhlMjYyMDctODY1OS00YTA5LWI0YWUtOThlYWNhOTU5NDAzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA3VDExNDg0NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTA0Yzc5MWFmMWRlZmE2MzIyZWYzZGJiNzYyNzA0MDI2YWRlYWZiYjg0Y2QxNjBhODNhYzc2NTRkMmRmNWIyYmUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.dmOS-_bNR2Mc3oe29G_KV_SIEZNZ1I4qu7DqYRsC110)
Repro steps
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
The text was updated successfully, but these errors were encountered: