Instant Stylecop Code Analysis How-to
暫譯: 即時 Stylecop 代碼分析實用指南
Franck Leveque
- 出版商: Packt Publishing
- 出版日期: 2013-05-27
- 售價: $1,190
- 貴賓價: 9.5 折 $1,131
- 語言: 英文
- 頁數: 56
- 裝訂: Paperback
- ISBN: 1782169547
- ISBN-13: 9781782169543
-
相關分類:
C#、軟體工程
海外代購書籍(需單獨結帳)
買這商品的人也買了...
-
$480$379 -
$305程式是如何跑起來的 (How Program Works)
-
$650$514 -
$1,000$850 -
$680$537 -
$690$538 -
$500$390
商品描述
Learn how to analyze and maintain code for your projects using StyleCop with this book and ebook
Overview
- Learn something new in an Instant! A short, fast, focused guide delivering immediate results
- Create your own custom rule for the Stylecop engine
- Check and maintain a C# coding style over your projects
- Personalize Microsoft rules to fit your needs
- Embed Stylecop analysis in your own tools
In Detail
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.
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.
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 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.
What you will learn from this book
- 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
Approach
Filled with practical, step-by-step instructions and clear explanations for the most important and useful tasks.The book will take a how-to approach, focusing on recipes that demonstrate Stylecop code analysis.
Who this book is written for
Stylecop Code Analysis How-to is intended for developers and project managers who are looking for an all-encompassing overview of Stylecop to display or enforce their specific coding conventions. It is assumed that you have a minimal understanding of integration technologies such as MSBuild and Nant. You should also have some knowledge on how to program in C# and LINQ. An available version of Visual Studio 2008 professional or superior is also required to follow the first chapters of this book.
商品描述(中文翻譯)
學習如何使用 StyleCop 分析和維護您的專案代碼,透過這本書和電子書。
概述
- 立即學習新知!一本短小、快速、專注的指南,提供即時結果
- 為 StyleCop 引擎創建您自己的自定義規則
- 檢查並維護您專案中的 C# 編碼風格
- 根據您的需求個性化 Microsoft 規則
- 將 StyleCop 分析嵌入到您自己的工具中
詳細內容
在中型和大型專案中,為了提高所有開發人員的可讀性和可維護性,會定義編碼規範。StyleCop 會分析您的代碼,並在專案生命週期的所有階段檢測編碼規則違規情況。
《StyleCop 代碼分析實用指南》讓您能夠利用 StyleCop 的功能,指導您如何配置它、如何將其整合到您的專案環境中,最後如何根據您的需求進行個性化設置。
《StyleCop 代碼分析實用指南》教您如何在您的編程環境中配置和整合 StyleCop。本書將展示如何在開發者的 IDE 到持續集成伺服器上配置 StyleCop。
您還將學習如何通過創建新規則來自定義 StyleCop 以符合您的編碼風格,以及如何個性化您的標頭文件。您還將看到如何將其嵌入到您自己的工具中,以創建 Monodevelop 的實時分析附加元件為例。
透過《StyleCop 代碼分析實用指南》,您將了解成功整合您的編程團隊並強制執行您自己的編碼規則所需的所有步驟。
您將從這本書中學到的內容
- 安裝 StyleCop 並在 Visual Studio 中使用它
- 使用 Resharper 插件修復專案中的 StyleCop 規則違規
- 在 Jenkins CI 中整合 StyleCop 分析並報告其違規情況
- 自定義文件標頭,並使用 Visual Studio 模板和片段以避免 StyleCop 違規
- 為 StyleCop 引擎創建您自己的自定義規則,以及如何在其中包含一些用戶參數
- 將 StyleCop 嵌入到您自己的工具中
- 使用 MSBuild 自動化 StyleCop 分析
- 使用命令行自動化 StyleCop 分析
- 使用 Nant 自動化 StyleCop 分析
方法
本書充滿實用的逐步指導和清晰的解釋,針對最重要和有用的任務。將採取實用的方法,專注於展示 StyleCop 代碼分析的食譜。
本書的讀者對象
《StyleCop 代碼分析實用指南》旨在為尋求全面了解 StyleCop 以展示或強制執行其特定編碼規範的開發人員和專案經理而寫。假設您對 MSBuild 和 Nant 等整合技術有基本了解。您還應該具備 C# 和 LINQ 的編程知識。此外,跟隨本書的前幾章需要擁有 Visual Studio 2008 專業版或更高版本。