Can StyleCop warnings be turned off per solution/local machine?

Jan 12, 2012 at 12:52 PM

Using ReSharper 6.1 and StyleCop 4.7. I would like to be able to quickly turn off and on the StyleCop warnings in Visual Studio. Can StyleCop warnings be turned off from the ReSharper configuration options or from Visual Studio on a per solution, per workstation basis?

Coordinator
Jan 12, 2012 at 2:14 PM

ReSharper-> Options -> Code Editing-> Code Cleanup. StyleCop. Does that help?

 

This might help too. http://stylecop.codeplex.com/wikipage?title=Using%20StyleCop%20on%20Legacy%20Projects&referringTitle=Documentation

May 14, 2013 at 10:09 AM
To turn off StyleCop at solution level:
  • Create(or copy an existing) a setting file 'Settings.StyleCop' in the root directory containing the *.sln file.
  • Add the below xml and save:
<StyleCopSettings Version="105">
  <GlobalSettings>
    <BooleanProperty Name="RulesEnabledByDefault">False</BooleanProperty>
  </GlobalSettings>
</StyleCopSettings>
Done.