What are C# rules based on?

  • Developer Edition
  • Version 8.9.1 (build 44547)


Could anyone tell me on what the rules for C# are based on? Are they based on Microsofts Coding Conventions? I couldn’t find anything about it.

Thank you

Hi Thomas

Welcome to the community and thanks for your question.

The C# rules come from many sources, most have been created here at SonarSource based on the language specification, Microsoft guidance and common problems we see. Many were ported from FXCop. The newer security rules are based on security standards such as OWASP and SANS.

I hope that helps