stylecop
Commenting a ASP.NET MVC Controller
I am a big fan of Stylecop and I always follow it guidelines. I also follow the guideline that state that a comment should bring added value to the code and not repeat what the code is doing.[详细]
2023-01-05 07:01 分类:问答When I use WinForms (C#) designer in VS2010, it still generates code that StyleCop complains about
Some problems that I recall (there may be more): Includes regions Does not use this. prefix for me开发者_运维问答mber variables and methods[详细]
2023-01-02 10:10 分类:问答Is there a .Net StyleCop rule which warns about lock(this), lock(typeof, lock(<string obj>, etc.?
These 3 types of lock are apparently bad. What other type of locking is bad? Are there Stylecop / FxCop rules that would catch this?[详细]
2023-01-02 07:00 分类:问答Is there a way to use one and only one settings file in stylecop?
Dinking around with stylecop settings files is getting annoying and messing with my repo structure. The repo is like this:[详细]
2023-01-01 16:35 分类:问答StyleCop 4.4 works inside VS.NET 2010 but not MSBuild command line
We are seeing extremely strange results where StyleCop will correctly report violations when run from within Visual Studio 2010.However, when开发者_高级运维 we run msbuild on the command line (e.g., \[详细]
2023-01-01 12:07 分类:问答How did your team customize Stylecop (and perhaps other tools) for .Net for a good result?
Our team is still in a love / hate relationship with it. I am hoping to put an end to the debate by having an internal vote on what rules should be excluded and which rules should be added.[详细]
2022-12-31 11:16 分类:问答How can I make VS2010 insert using statements in the order dictated by StyleCop rules
The related default StyleCop rules are: Place using statements inside namespace. Sort using statements alphabetically.[详细]
2022-12-30 20:17 分类:问答Need a C# Assembly to reference a strongly named assembly loosely
So here\'s the problem.I\'m writing some StyleCop plug-in assemblies for use at the company I work for.As such, these assemblies need to reference Microsoft.StyleCop.CSharp.dll for example, which is s[详细]
2022-12-27 05:39 分类:问答Filtering warnings in Visual studio 2008
I opened up a huge Solution in VS2008. I has about a little over a thousand style cop warnings. I don\'t have resharper or any other commercial visual studio add-ins. Is there any way I can filter the[详细]
2022-12-26 19:23 分类:问答Trying to suppress StyleCop message SA1513:ClosingCurlyBracketMustBeFollowedByBlankLine
I am trying to suppress the following StyleCop message for a specific property: SA1513: Statements or elements wrapped in curly brackets must be followed by a blank line.[详细]
2022-12-26 02:59 分类:问答