Resharper for loading StyleCop settings

I am using Resharper 7.1 and StyleCop 4.7 (since Visual Studio 2012). By default, Resharper loads all StyleCop rules for verification, and for all of them the action to be taken is a β€œWarning”, although some of the rules are disabled in the Settings.StyleCop file.

If a particular StyleCop rule is disabled, I would like Resharper to not display anything (because, of course, not all default rules make sense all the time).

I know that this can be done manually in Resharper - Options - Inspection Severity, choosing for myself what action to take for each rule. But is there a way to do this automatically? That is, resharper does not warn you about a rule violation if it is disabled in Stylecop.Settings?

It makes sense to do this automatically, because I want to define a set of mandatory rules for the entire team to apply, and it would be superfluous for each engineer to manually correct the action taken for each existing rule (since there are a lot of them).

Thanks in advance, Mihai

+6
source share
1 answer

There seems to be no way to do this, though, you can configure the rules manually in the Resharper parameters and then export your parameters (via Manage β†’ Export to File), and they can be imported to other machines.

+1
source

All Articles