Start here

Home
About Klocwork
What's new
Fixed issues
Release notes
Installation

Reference

C/C++ checkers
Java checkers
C# checkers
MISRA C 2004 checkers
MISRA C++ 2008 checkers
MISRA C 2012 checkers
MISRA C 2012 checkers with Amendment 1
Commands
Metrics
Troubleshooting
Reference

Product components

C/C++ Integration build analysis
Java Integration build analysis
Desktop analysis
Refactoring
Klocwork Static Code Analysis
Klocwork Code Review
Structure101
Tuning
Custom checkers

Coding environments

Visual Studio
Eclipse for C/C++
Eclipse for Java
IntelliJ IDEA
Other

Administration

Project configuration
Build configuration
Administration
Analysis performance
Server performance
Security/permissions
Licensing
Klocwork Static Code Analysis Web API
Klocwork Code Review Web API

Community

View help online
Visit RogueWave.com
Klocwork Support
Rogue Wave Videos

Legal

Legal information

Tutorial 2: Excluding issues in test code from view

If your project contains test code, you likely don't want your developers to worry about issues detected in that code. You can create a module for the directories containing the test code and then edit the default view to exclude the module.

Create a module for the test code

  1. If you're not already viewing the Projects list, click Projects at the top left.
  2. Click your project in the list. The project details appear.
  3. Click Modules in the project details.
  4. Click Create a new module.
  5. In the Module name field, enter Test Code.
  6. If access control has been set up, you will see additional fields related to permissions; just leave the defaults, because you don't need to worry about who has access to test code.
  7. In the Path patterns field, enter the absolute path to your source files, or a path pattern.
    Tip: You can use asterisks as wildcards (necessary if the path to your source files changes from build to build). A single asterisk matches one directory level; two asterisks match any part of a path. For example:
    */test/*
    
    **/test/*
    
  8. Click add if you want to add more file paths to this module.
  9. Use the tags field to add information that will be helpful for filtering later.
  10. Click Create to save your new module.

For more details on creating modules, see Organizing your code into modules.

Edit the default view

  1. Go back to the Projects list by clicking Projects at the top left.
  2. Click the project you want to edit.
  3. The project details appear on the right. Click Views in the project details.
  4. Click the Image:Edit delete projects.png edit icon to the left of the view labeled *default*.
  5. In the Search field, enter:
    -module:"Test Code"
    
  6. Click Save.

Test the default view

  1. Click the New or Open issues link for the default view.
  2. You should not see issues found in code that's part of the Test Code module.