Top "Stylecop" questions

StyleCop analyzes C# source code to enforce a set of style and consistency rules.

Transfer all ReSharper Settings between PCs

I was wondering if there is a way to copy ALL my settings from ReSharper (including the StyleCop for ReSharper …

c# visual-studio resharper stylecop
How to fix violation of StyleCop SA1305 (Hungarian)

My code contains a variable named "m_d3dDevice". StyleCop complains about this name: SA1305: The variable name 'm_d3…

stylecop hungarian-notation
How to suppress StyleCop error SA0102 : CSharp.CsParser : A syntax error has been discovered in file when using generic type parameters attributes

Having the following C# code with generic type parameter attribute: [System.AttributeUsage(System.AttributeTargets.GenericParameter)] public class GenericParameterAttribute : System.Attribute { } …

c# generics code-analysis stylecop
Disable all stylecop warnings for a specific C# class

I am working in an application and developing few classes for demo purpose. I know that these classes will be …

c# .net-4.5 stylecop
Disable stylecop analysis for specific projects within solution

Is there a way to easily stop StyleCop warnings from being displayed within specific projects in a solution. Or, more …

c# stylecop
Warnings as Errors - does not apply to Stylecop warnings

I want to treat Stylecop warnings as errors, but it's not working for me. My projects are configured to treat …

c# visual-studio visual-studio-2013 compiler-warnings stylecop
How to disable Style Cop visual studio extension?

How to disable the Style Cop visual studio extension? It's not listed in Tools / Extensions or in Tools / Add-in manager

visual-studio stylecop
Stop Visual Studio from putting using directives outside namespace

Is there a setting in Visual Studio (or Resharper) that allows you to specify what namespaces should be default and …

c# visual-studio visual-studio-2013 resharper stylecop
Force ReSharper to use StyleCop settings for code cleanup

I saw similar questions but was unable to find the answer, even though some of them were marked as answered. …

visual-studio-2010 resharper stylecop
Can StyleCop automatically fix anything?

I've decided to start running StyleCop on a medium sized project and am getting over 1000 warnings. Is there a quick …

visual-studio-2008 shortcut stylecop