Top "Stylecop" questions

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

The field must have a documentation header - Style Cop - Code smell?

I was just running style cop against some of my code and got a few: SA1600: The field must have …

coding-style stylecop
TemporaryGeneratedFile_[guid] in /obj/debug breaking build

I have 3 temporary files being created in obj/debug: E.g. TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5…

asp.net-mvc .net-4.5 stylecop
Is sa1200 All using directives must be placed inside the namespace (StyleCop) purely cosmetic?

Possible Duplicate: Should Usings be inside or outside the namespace sa1200 All using directives must be placed inside the namespace (…

c# stylecop
Why does StyleCop recommend prefixing method or property calls with "this"?

I have been trying to follow StyleCop's guidelines on a project, to see if the resulting code was better in …

c# .net coding-style stylecop
What's the proper way to comment a constructor in a generic class?

What's the proper way to comment this? /// <summary> /// Initializes a new instance of the <see cref="Repository"/&…

c# visual-studio visual-studio-2010 stylecop xml-documentation
Exclude file from StyleCop analysis: "auto-generated" tag is ignored

At the beginning of a C# file, I have added: //----------------------------------------------------------------------- // <copyright company="SomeCompany" file="MyFile.cs"> // Copyright © …

c# stylecop generated-code
Visual Studio: temporarily disable StyleCop

Can you disable styleCop in VS? Scenario: Press "Disable StyleCop" button Run/debug some test code The button automatically, enable …

visual-studio-2012 stylecop
StyleCop/FxCop 10 - How do you properly suppress a message only on a namespace level?

FxCop 10 is complaining about the following: using XYZ.Blah; //CA1709 - "XYZ" using Xyz.Blah; //No complaint. using XylophoneSuperDuperLongFullName.Blah; //…

c# namespaces fxcop stylecop suppressmessage
The mystery of stuck inactive msbuild.exe processes, locked Stylecop.dll, Nuget AccessViolationException and CI builds clashing with each other

Observations: On our Jenkins build server, we were seeing lots of msbuild.exe processes (~100) hanging around after job completion with …

msbuild nuget stylecop
Disable StyleCop for specific lines

We're using StyleCop in our C# projects. In some cases we'd like to avoid the rules though. I know you …

.net stylecop