intro to stylecop

10
StyleCop Manage consistent style and structure across multiple developers.

Upload: wlscaudill

Post on 09-May-2015

148 views

Category:

Software


1 download

DESCRIPTION

An introduction to StyleCop. Covering the integration, value, and usages.

TRANSCRIPT

Page 1: Intro to Stylecop

StyleCopManage consistent style and structure across multiple developers.

Page 2: Intro to Stylecop

Install

Page 3: Intro to Stylecop

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

Page 4: Intro to Stylecop

Resharper Integration

Will reset fine grain settings around curly brace placement, spacing, etc.

Resharper will auto-complete most of these rules for free!

Page 5: Intro to Stylecop

Resharper Integration (cont.)

Most things Resharper won’t give you for free it can give you via the ‘QuickFix | Alt-Enter’

Page 6: Intro to Stylecop

Visual Studio Usage

Can run by right-clicking on the solution or project.

Can also run via MSBuild for Continuous Integration.

Page 7: Intro to Stylecop

Visual Studio Usage (cont.)

Violations will show up as Warnings in Visual Studio and supports double-click to navigate to it.

Page 8: Intro to Stylecop

Can control rules used

Settings can be changed globally or on a project level.

Page 9: Intro to Stylecop

Settings Interface

Rule set can be fine tuned and also supports custom rules being added.

Page 10: Intro to Stylecop

Resources

StyleCop: http://stylecop.codeplex.com/

Author: Lawson Caudill – http://www.getthinktank.com