Monday, February 20, 2012

StyleCop if you Need Clean Code

What is StyleCop ?

StyleCop is a code styler that format C# source code as per defined rule and guidelines. Microsoft supply some standard set of rules that can be extended if required.

 It can be run from inside of Visual Studio or integrated into an MSBuild project. StyleCop has also been integrated into many third-party development tools.

It help you to find documentation issue in your code and also make you code consistent for future maintenance.

Getting Started
  1. Install Prerequisite : Vs2008/VS2010
  2. Install Stylecop from code plex
Learning Curve
This tool do not requires any special learning curve and can be executed right from visual studio. It emits warning in error console.

However fixing warning and suppressing know warning may took some time to become an expert.

Further references 

No comments:

Post a Comment