-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I've been doing research on how to enable source analysis for the project I'm working on and plan to use StyleCop. The setup I have is a TFS Server for source control, using TFS Continuous Integration. I want to enable source analysis for CI builds and daily builds run on the build machine, and not…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
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 rule to allow StyleCop to recognize the header. for example:
// <copyright file="abc.ascx.cs" company="MyCompany.com">
// MyCompany.com. All rights reserved…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Is there a way to integrate StyleCop in a NAnt script such that the build fails if there are too many style violations?
There doesn't seem to be a NAnt task for StyleCop, but we've found StyleCopCmd. However this only seems to generate an XML file as output that we'd have to parse. Is there some…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
SA1124 DoNotUseRegions suggest that region should not be used anywhere. Is it really reasonable?
I think region is a way to group relative code together and make large class easy to read, for example, if you generate interface method in for class, a region will be automatically inserted by visual…
>>> More
-
as seen on ASP.net Weblogs
- Search for 'ASP.net Weblogs'
In this post I'll illustrate in details the following points What is static code analysis? When to use? Supported platforms Supported Visual Studio versions How to use Run Code Analysis Manually Run Code Analysis Automatically Run Code Analysis while check-in source…
>>> More