Open keith-softsure opened 1 week ago
Hi @keith-softsure! I confirm this as a false positive. I'll add a reproducer to our repository shortly. Thanks for the feedback!
Thanks Cristian,
We really appreciate the feedback. And your good work. Cheers Keith From: Cristian @.> Sent: Wed, 30 October 2024 12:17 To: SonarSource/sonar-dotnet @.> Cc: Keith Shearer @.>; Mention @.> Subject: Re: [SonarSource/sonar-dotnet] Fix S4275 FP: Support &= assignment (Issue #9688)
This message originates from outside the Badger Holdings Organization, please exercise caution
Hi @keith-softsurehttps://github.com/keith-softsure! I confirm this as a false positive. I'll add a reproducer to our repository shortly. Thanks for the feedback!
- Reply to this email directly, view it on GitHubhttps://github.com/SonarSource/sonar-dotnet/issues/9688#issuecomment-2446457258, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BH7ROGMIQASE7EHXYKNUP4LZ6CW23AVCNFSM6AAAAABQQJHYU2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBWGQ2TOMRVHA. You are receiving this because you were mentioned.Message ID: @.**@.>>
SonarLint does not recognise &= operator as assignment
S4275 fails the SET statement and suggests that _feedback parameter is not assigned a value in this line: _feedback &= value
Repro steps
Expected behavior
_feedback &= value ' original Code should be acceptable
Actual behavior
_feedback &= value ' original Code generates S4275 error
Known workarounds
Related information