StyleCop Code Analysis How-to - Franck Leveque - E-Book

StyleCop Code Analysis How-to E-Book

Franck Leveque

0,0
19,19 €

-100%
Sammeln Sie Punkte in unserem Gutscheinprogramm und kaufen Sie E-Books und Hörbücher mit bis zu 100% Rabatt.

Mehr erfahren.
Beschreibung

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.

Das E-Book können Sie in Legimi-Apps oder einer beliebigen App lesen, die das folgende Format unterstützen:

EPUB
MOBI

Seitenzahl: 51

Veröffentlichungsjahr: 2013

Bewertungen
0,0
0
0
0
0
0
Mehr Informationen
Mehr Informationen
Legimi prüft nicht, ob Rezensionen von Nutzern stammen, die den betreffenden Titel tatsächlich gekauft oder gelesen/gehört haben. Wir entfernen aber gefälschte Rezensionen.



Table of Contents

Instant StyleCop Code Analysis How-to
Credits
About the Author
About the Reviewer
www.PacktPub.com
Support files, eBooks, discount offers and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Instant StyleCop Code Analysis How-to
Installing StyleCop with Visual Studio (Simple)
Getting ready
How to do it...
How it works...
There's more...
Rules activation
Merging StyleCop settings
Using StyleCop with Express editions of Visual Studio and SharpDevelop
Understanding the Resharper add-in (Simple)
Getting ready
How to do it...
How it works...
There's more...
Dev Express – Code Rush
Code Maid
NArrange
Automating StyleCop using MSBuild (Simple)
Getting ready
How to do it...
How it works...
There's more...
Setting up properties of the task in a more global way
Excluding files from StyleCop analysis
Automating StyleCop using a command-line batch (Simple)
Getting ready
How to do it...
How it works...
There's more...
StyleCopCmd for Mono and Linux systems
StyleCop CLI
Building your own
Automating StyleCop using NAnt (Intermediate)
Getting ready
How to do it...
How it works...
There's more...
Integrating StyleCop analysis results in Jenkins/Hudson (Intermediate)
Getting ready
How to do it...
How it works...
Customizing file headers (Simple)
Getting ready
How to do it...
How it works...
There's more...
Other ways to handle the headers
Company configuration
Creating custom rules (Intermediate)
Getting ready
How to do it...
How it works...
There's more...
Customize your StyleCop settings dialog
Unit testing your rules
Integrating StyleCop in your own tool (Advanced)
Getting ready
How to do it...
How it works...
There's more...
Add a configuration screen
Do the work in a background thread
Change the display of violations

Instant StyleCop Code Analysis How-to

Instant StyleCop Code Analysis How-to

Copyright © 2013 Packt Publishing

All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.

Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.

Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.

First published: May 2013

Production Reference: 1170513

Published by Packt Publishing Ltd.

Livery Place

35 Livery Street

Birmingham B3 2PB, UK.

ISBN 978-1-78216-954-3

www.packtpub.com

Credits

Author

Franck LEVEQUE

Reviewer

Christian Popescu

Acquisition Editor

Mary Nadar

Commissioning Editor

Sharvari Tawde

Technical Editor

Varun Pius Rodrigues

Project Coordinator

Suraj Bist

Proofreader

Lydia May Morris

Graphics

Ronak Dhruv

Production Coordinator

Melwyn D'sa

Cover Work

Melwyn D'sa

Cover Image

Nitesh Thakur

About the Author

Franck LEVEQUE has studied computer science in Reims, France and has been in the software industry for more than 12 years. During this period he has worked on different projects using a variety of technology and development languages. Curious by nature, he follows a wide range of open source projects and has proposed bug fixes and features for some of them.

He currently works as the lead architect of the SamFM product for Planon Site Alpha. SamFM is a CMMS used for building management.

I would like to thank my father, my sister, and their spouses for keeping my children during the time I took to write this book.

Thanks to Yann HARLAUT for encouraging me to accept the authorship of this book.

And thanks to the Packt Publishing team for answering my questions and helping me complete this book.

About the Reviewer

Christian Popescu has over 20 years professional experience as a software engineer covering all the areas specified by the Guide to the Software Engineering Body of Knowledge (SWEBOK second version). His interest domain includes object oriented analysis and design, software architecture, patterns, code quality, and continuous integration.

He is currently Software Configuration Manager for a CMMS and Facility Management software editor.

I dedicate this book to my wife Diana and to my sons Victor and Alexandre.

www.PacktPub.com

Support files, eBooks, discount offers and more

You might want to visit www.PacktPub.com for support files and downloads related to your book.

Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at <[email protected]> for more details.

At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.

http://PacktLib.PacktPub.com

Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library. Here, you can access, read and search across Packt's entire library of books. 

Why Subscribe?

Fully searchable across every book published by PacktCopy and paste, print and bookmark contentOn demand and accessible via web browser

Free Access for Packt account holders

If you have an account with Packt at www.PacktPub.com, you can use this to access PacktLib today and view nine entirely free books. Simply use your login credentials for immediate access.

Preface

When I took interest in StyleCop with Version 4.2 in 2008, the tool was heavily criticized on the Internet. These reactions had their roots in the following points:

The tool was not open sourceThe rules implemented were arbitrary rules set by Microsoft and were not to the liking of some people