Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Visual Studio 2013 Cookbook
  • Table Of Contents Toc
Visual Studio 2013 Cookbook

Visual Studio 2013 Cookbook

4.2 (13)
close
close
Visual Studio 2013 Cookbook

Visual Studio 2013 Cookbook

4.2 (13)

Overview of this book

Table of Contents (17 chapters)
close
close
Visual Studio 2013 Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
2
Index

Using a custom rule set


The built-in rule sets that come with Visual Studio cover a variety of usage scenarios and provide a way to use the Code Analysis tool in your projects immediately. Of course, depending on the complexity and needs of your project, the default rules may need to be customized and combined, as this recipe will demonstrate.

Getting ready

We are going to continue with the project we created in the Analyzing your C++ code recipe. You will need Visual Studio Professional or higher in order to modify rule sets.

How to do it…

To use a custom rule set, perform the following steps:

  1. Open the project created in the previous recipe.

  2. Open the AnalyzeThis.cpp file and add the following highlighted code:

    # include "AnalyzeThis.h"
    
    int x = 0;
    
  3. Right-click on the project (not solution) in Solution Explorer and select Properties. The following screenshot will appear:

  4. In the drop-down list indicated in the preceding screenshot, you may select a different individual rule set or pick and choose...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Visual Studio 2013 Cookbook
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon