Hi, since a few versions of SonarAnalyzer.CSharp
, I experience several false positives on S1172:
I’m not sure if this is the root cause, but the false positive is not raised when I only reference SonarAnalyzer.CSharp
nuget package in my csproj. However it started appearing after I added a reference to Microsoft.Bcl.HashCode
v1.1.1. I’ve set up a repro repository here: https://github.com/odalet/Sonar-S1172-repro
NB: I also tried to remove the default value of the parameter in the signature, but it didn’t help.
For the record, the screenshot above is in a C#, .NET 4.8 project using VS2022 and SonarAnalyzer.CSharp v8.36.1.44192.