I’d like to disable certain rules for Sonar C# for my Codacy project. According to the SonarQube docs, I have to create an .editorconfig
file, so I did:
[*.cs]
dotnet_diagnostic.S121.severity = none
dotnet_diagnostic.S3216.severity = none
However, Codacy does not seem to pick up the .editorconfig
file - at least the warnings that should be disabled are still there.
What do I have to do to disable certain rules for Sonar C#?
Thanks!
I also asked this question in Codacy's forum (see here). Here is the answer I got:
And here the mentioned script: