The StyleCop tool provides warnings that indicate style and consistency rule violations in C# code. By default, the tool integrates into Visual Studio 2008 and Visual Studio 2010, and it can also be integrated into MSBuild-based build systems. It is also possible to author custom rules to run within the tool, and to create a wrapper host to integrate the tool into a custom build environment.

StyleCop Rules Documentation

Starting with StyleCop 4.3.2, it is possible to suppress the reporting of rule violations by adding suppression attributes within the source code.

Rule Suppressions