Configure StyleCop Analyzers (Roslyn) in Rider

1.2k Views Asked by At

I am not able to configure the StyleCop Analyzers (Roslyn) in Rider.

I saw this answered question already, but I cannot find Code Analysis in my project properties.

I also tried Inspections and checked every menu item, but I cannot find a single thing, which would allow me to change the settings to enable/disable some rules.

enter image description here

1

There are 1 best solutions below

0
mu88 On BEST ANSWER

The answer you're referring to is a) pretty old and b) only valid for Visual Studio.

Within Rider, you have two options:

  1. Use StyleCop Analyzers (probably your most preferred option, as you've tagged your question with roslyn) (see here and here) → for this you've to install the analyzer StyleCop.Analyzers
  2. Let Rider import settings from StyleCop settings files (see here)