Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • defining them directly through the Sonar SonarQubeTM web interface using XPath expressions
  • or reusing custom ones defined in external tools such as FxCop, Gendarme or StyleCop

...

You can reference your custom rules from FxCop and/or Gendarme and/or StyleCop in SonarSonarQubeTM:

  1. Write a piece of XML to reference your custom coding rules. See formats below.
  2. Go to Settings > Configuration > General Settings > .Net FxCop or .Net Gendarme or C# StyleCop
  3. Paste this piece of XML in .NET/C# XXX custom rules
  4. Click on Save .NET/C# XXX settings
  5. Restart your Sonar SonarQubeTM server
  6. Activate your custom coding rules in your C# quality profiles

...