intro to stylecop
DESCRIPTION
An introduction to StyleCop. Covering the integration, value, and usages.TRANSCRIPT
StyleCopManage consistent style and structure across multiple developers.
Install
Scope of Product
Analyzes source files (not compiled)
Checks structure:
Spacing
Comments
Naming
Grouping (private, publics, etc.)
Brace and bracket placement
Allows consistent look and feel across teams
Resharper Integration
Will reset fine grain settings around curly brace placement, spacing, etc.
Resharper will auto-complete most of these rules for free!
Resharper Integration (cont.)
Most things Resharper won’t give you for free it can give you via the ‘QuickFix | Alt-Enter’
Visual Studio Usage
Can run by right-clicking on the solution or project.
Can also run via MSBuild for Continuous Integration.
Visual Studio Usage (cont.)
Violations will show up as Warnings in Visual Studio and supports double-click to navigate to it.
Can control rules used
Settings can be changed globally or on a project level.
Settings Interface
Rule set can be fine tuned and also supports custom rules being added.
Resources
StyleCop: http://stylecop.codeplex.com/
Author: Lawson Caudill – http://www.getthinktank.com