Instant StyleCop Code Analysis How-to

Learn how to analyze and maintain code for your projects using StyleCop

Instant StyleCop Code Analysis How-to

Starting
Franck LEVEQUE

Learn how to analyze and maintain code for your projects using StyleCop
$12.99
RRP $12.99
eBook
$12.99 p/month

Get Access

Get Unlimited Access to every Packt eBook and Video course

Enjoy full and instant access to over 3000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

+ Collection
Free Sample

Book Details

ISBN 139781782169543
Paperback56 pages

Book Description

In medium-sized and big projects, coding conventions are defined in order to improve readability and maintainability for all the developers of the team. Stylecop analyzes your code and detects coding rule violations during all the phases of your project lifecycle.

Instant StyleCop Code Analysis How-to allows you to take advantage of the features of Stylecop by guiding you through how to configure it, how to integrate it in your project environment, and finally how to personalize it in order to fit your needs.

Instant StyleCop Code Analysis How-to teaches you how to configure and integrate Stylecop in your programming environment. The book will do this by showing you how to configure Stylecop on the developers IDE to the continuous integration server.

You will also learn how to customize Stylecop to fit your coding style by creating new rules as well as learning how to personalize your headers file. You will also see how to embed it in your own tools, using as an example the creation of a real time analysis add-on for Monodevelop.

With Instant StyleCop Code Analysis How-to, you will have an overview of all the required steps to successfully integrate your programming team and enforce your own coding rules.

Table of Contents

Chapter 1: Instant StyleCop Code Analysis How-to
Installing StyleCop with Visual Studio (Simple)
Understanding the Resharper add-in (Simple)
Automating StyleCop using MSBuild (Simple)
Automating StyleCop using a command-line batch (Simple)
Automating StyleCop using NAnt (Intermediate)
Integrating StyleCop analysis results in Jenkins/Hudson (Intermediate)
Customizing file headers (Simple)
Creating custom rules (Intermediate)
Integrating StyleCop in your own tool (Advanced)

What You Will Learn

  • Install Stylecop and use it within Visual Studio
  • Fix Stylecop rule violations in your project using theResharper plugin
  • Integrate Stylecop analysis in Jenkins CI and report its violations
  • Customize file headers and use Visual Studio templates and snippets to avoid Stylecop violations
  • Create your own custom rule for the Stylecop engine and how to include some user parameters in it
  • Embed Stylecop with your own tools
  • Automate Stylecop analysis using MSbuild
  • Automate Stylecop analysis using the command line
  • Automate Stylecop analysis using Nant

Authors

Table of Contents

Chapter 1: Instant StyleCop Code Analysis How-to
Installing StyleCop with Visual Studio (Simple)
Understanding the Resharper add-in (Simple)
Automating StyleCop using MSBuild (Simple)
Automating StyleCop using a command-line batch (Simple)
Automating StyleCop using NAnt (Intermediate)
Integrating StyleCop analysis results in Jenkins/Hudson (Intermediate)
Customizing file headers (Simple)
Creating custom rules (Intermediate)
Integrating StyleCop in your own tool (Advanced)

Book Details

ISBN 139781782169543
Paperback56 pages
Read More

Read More Reviews