Setting up the Company Policy taxonomy
First, we need to set up the Company Policy taxonomy in the Configuration Editor.
- Launch the standalone Taxonomy Editor.
The Taxonomy Editor appears.
- Right-click any white space and click New taxonomy.
- In the Create new taxonomy dialog, enter "Company Policy" and click OK.
- Expand the C and C++ taxonomy.
- Ctrl-click the Buffer Overflow and Null Pointer Dereference categories.
- Right-click and select Copy.
- Right-click Company Policy and select Paste.
- Now, we're going to add two security vulnerability checkers to the taxonomy.
Right-click Company Policy and select Add issue.
- In the Issue code field, start typing
SV.IN
.Autocompletion fills in the rest of the name and suggests checkers matching your entry.
- Select SV.INCORRECT_RESOURCE_HANDLING.URH and click OK .
- Repeat the previous two steps, but this time select SV.INCORRECT_RESOURCE_HANDLING.WRONG_STATUS.
- Click OK and save your new taxonomy file somewhere you can find it.
- Log in to Validate.
- In Validate's project list, click the project you want to upload the file to.
The project details appear.
- In the project details, click Configuration.
- On the Configuration page, click Add a configuration file.
- In the Choose file dialog, browse to:
<projects_root>/projects/<project_name>/rules/<yourtaxonomyfile>.tconf
(or wherever you chose to save your taxonomy file)where<project_name> is the project whose configuration you want to copy.
- Click Upload.
Your new Company Policy taxonomy appears in the tree.
- Expand the Company Policy taxonomy and make sure that all the NPD and ABV checkers are enabled.
- Add a check to SV.INCORRECT_RESOURCE_HANDLING.URH and SV.INCORRECT_RESOURCE_HANDLING.WRONG_STATUS to enable them.
- Click
to save your changes.
To learn how to apply a taxonomy to all new projects, see Copying the configuration to all new projects.
Now we'll use our taxonomy in Validate.