JavaScript is not currently enabled, but is required for full CodeSonar manual search and browse functionality.

If you are viewing this file in your hub's Web GUI, enable JavaScript in your browser: you will also need it for GUI functionality.

If you opened this file directly from disk, your browser may be directly suppressing JavaScript functionality: certain browsers perform this suppression on local files (but not files delivered by web servers) for security reasons.

CodeSonar® 9.2p0 CONFIDENTIAL CodeSecure Inc

Task: Assign All Warnings In A Directory To One User

If your development team is organized so that different users have responsibility for different parts of the system, it is useful to be able to assign groups of related warnings to a user in one big batch, rather than assigning each warning separately. This operation has two parts:



Method

Suppose you want to assign all warnings in the directory src/ioutil to Lindsay.

  1. If the CodeSonar Web GUI is not already open, open it now.
  2. Sign in. This is necessary because assigning a new Owner to warnings involves changing the hub database.
  3. Carry out a search for warnings in the directory src/ioutil:
    1. Select warnings in all projects from the search domain/scope menu.
    2. Enter path:src/ioutil in the search field.
    3. Click Search.
  4. Examine the warning table on the Warning Search Results page to make sure the contents are what you expected.
  5. Click the Change Multiple Warnings button under the warning table. Additional fields will appear on the page.
  6. Click the Check All button to select all the warnings in the table.
  7. Select Lindsay from the pull-down Owner menu (under the warning table). If Lindsay does not appear in this list, then either the Lindsay account has been disabled or Lindsay has not yet created a CodeSonar account. The Administrator user can enable disabled users. Anyone can create a new account called "Lindsay" by going to the Sign In page (you must be signed out first, though).
  8. Click the Save changes button.

CodeSonar will display a page that describes the changes you made and lists the warning reports affected.

Future Assignments: WARNING_FILTER

The method described above is suitable for assigning warnings from analyses that have already been performed.

You can also instruct CodeSonar to assign all warnings from future analyses to Lindsay if they are in directory src/ioutil. To do this, you will use a WARNING_FILTER rule in the general template configuration file.

  1. Open $CSONAR/codesonar/template.conf for editing.
    This is the general template configuration file: it is applied to all CodeSonar analyses performed with the corresponding installation. If you only want to assign warnings in one project, edit the general project configuration file for that project instead.
  2. Add the following rules to the template.
    WARNING_FILTER += owner:=Lindsay path:src/ioutil
    WARNING_FILTER += owner:=Lindsay path:src\ioutil
    
  3. Check the other WARNING_FILTER rules defined in the template to make sure none of them conflict with your new rules. If you find any, you have two options for addressing the conflict.
  4. Save your changes to the template.

For future analyses with the corresponding CodeSonar installation, Lindsay will now be established as the owner of warnings issued in src/ioutil before the warnings are submitted to the hub.

Links

 

To report problems with this documentation, please visit https://support.codesecure.com/.