Rule to detect the usage of NOSONAR in C# code

Hello,
Is there any possibility to detect the use of NOSONAR in C# code comments, besides developing a Roslyn analyzer myself?
Also, do you plan to add such a rule in the future? It would be very useful.

Thanks for your time! :slight_smile:

Hey there.

For what it’s worth, this is already being tracked here: New Rule Idea: Track uses of "NOSONAR" comments (S1291) · Issue #5065 · SonarSource/sonar-dotnet · GitHub

I found this thread from Sep 2020, so it seems the request to have a NOSONAR rule for C# is almost 4 years now :birthday:

Is there any chance for a status update, or perhaps even an estimate on when this will become available or should we just check back in in another couple of years? :slight_smile:

Hey @Egon_Kidmose

There’s no ETA, I’m sorry.

1 Like

Hi Colin,

I know this topic is pretty old, but I have a question regarding custom rules for C#.
If I want to add a logging system for my RoslynAnalyzer, since I cannot use the one from sonar-plugin-api, what is the alternative? I know that custom Logging solutions can cause problems with build logs.

Thank you!

Hey @andreeamuscalu

New threads are free, create a new one please :slight_smile: