tagged [stylecop]
How can you force StyleCop to ignore a file?
How can you force StyleCop to ignore a file? I've included a 3rd party .cs file in my code. It doesn't comply with StyleCop's rules but I desperately need to be able to exclude it from StyleCop's chec...
- Modified
- 30 May at 16:51
Resharper indenting the XML documentation text on code cleanup?
Resharper indenting the XML documentation text on code cleanup? I am using with the . I am not sure if this is a bug, but, I am confused because the code cleanup behaves differently prior to the clean...
- Modified
- 16 Jun at 12:19
StyleCop XML Documentation Header - Using 3 /// instead of 2 //
StyleCop XML Documentation Header - Using 3 /// instead of 2 // I am using XML documentation headers on my c# files to pass the StyleCop rule SA1633. Currently, I have to use the 2 slash commenting ru...
- Modified
- 13 Mar at 08:27
How to suppress StyleCop error SA0102 : CSharp.CsParser : A syntax error has been discovered in file when using generic type parameters attributes
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 parame...
- Modified
- 21 Jan at 02:44
How to suppress a StyleCop warning?
How to suppress a StyleCop warning? I'm using StyleCop and want to suppress some warning which does not suit my style. I prefer to have solution for 1) in-line code suppressing 2) global setting suppr...
- Modified
- 8 Mar at 21:43
Where is the Stylecop configuration file?
Where is the Stylecop configuration file? I've installed Stylecop via NuGet. I wish to disable some rules, and I know this can be done via a configuration file from what I've read. However, I can't fi...
StyleCop/FxCop 10 - How do you properly suppress a message only on a namespace level?
StyleCop/FxCop 10 - How do you properly suppress a message only on a namespace level? FxCop 10 is complaining about the following: The problem is... I want my company name to show up in all UPPERCASE ...
- Modified
- 3 Jan at 05:50
How can I configure Roslyn Analyzers in many projects?
How can I configure Roslyn Analyzers in many projects? I want to enforce code quality and consistent styling in my organization. To do this I plan to add [Roslyn Analyzers](https://github.com/dotnet/r...
- Modified
- 4 Dec at 21:5
Disable Stylecop on single code line (the namespace)
Disable Stylecop on single code line (the namespace) We have an existing product where we would like to implement the usage of StyleCop. However, we have one problem with this and it's that all our na...
- Modified
- 19 Sep at 08:20
CA1500 vs. SA1309 - Which one wins?
CA1500 vs. SA1309 - Which one wins? I'll prefix by saying that I understand that both Code Analysis and StyleCop are meant as guidelines, and many people chose to ignore these anyway. But having said ...
- Modified
- 9 Jul at 18:24
Warnings as Errors - does not apply to Stylecop warnings
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 warnings as errors, and if I buil...
- Modified
- 17 Jul at 12:59
"CS8700: Multiple analyzer config files cannot be in the same directory" but only one StyleCop file
"CS8700: Multiple analyzer config files cannot be in the same directory" but only one StyleCop file I'm trying to learn to use StyleCop on a personal project. It's not a very big one, and the solution...
- Modified
- 9 Jun at 04:15
Disable stylecop analysis for specific projects within solution
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 pointedly, a way t...
Is it wrong to use braces for variable scope purposes?
Is it wrong to use braces for variable scope purposes? I sometimes use braces to isolate a block of code to avoid using by mistake a variable later. For example, when I put several `SqlCommand`s in th...
- Modified
- 6 Jul at 19:1
How do you resolve the discrepancy between "StyleCop C# style" and "Framework Design Guidelines C# style"?
How do you resolve the discrepancy between "StyleCop C# style" and "Framework Design Guidelines C# style"? After going through the Appendix A, "C# Coding Style Conventions" of the great book "Framewor...
- Modified
- 9 Jan at 00:23