Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space ENGINES1031 and version 2020.2

This topic explains how to suppress Parasoft findings using the UI of in an IDE. See Suppressing the Reporting of Findings for information about manually suppressing findings in source code or a suppression file.

...

  1. Right-click on a single finding or a group of selected findings and choose Suppress from the menu.

  2. Enter a reason for suppressing the finding and choose where the suppressions will be stored. You can select one of the following options:

    • In source code - The selected finding will be suppressed in code and shared across the team when checked in your source control system.
    • Locally in file - The suppression will be stored in a parasoft.suppress file located in the same location as the corresponding source file. See In-file Suppressions for details.
    • On DTP- The suppression will be stored on DTP and shared with the team. You can only suppress findings that are already registered on DTP.

    Info
    iconfalse
    titleSuppressing Findings on DTP

    The On DTP option is only available

    only

    for findings that

    are

    have already been registered on DTP

    .Findings

    and are suppressed in the subsequent analysis run.

  3. Click OK to complete the suppression.

...

If you choose to store a suppression in a file, it will be stored in a parasoft.suppress file created in the same location as the source file that contains the finding. When you add a suppression, the file automatically opens in the IDE editor. The contents of the file may resemble the following:

Code Block
languagetext
suppression-begin
file: Simple.java
rule-id: UC.AUL
message: Avoid unused label: case10
reason: verified
author: annstu
suppression-end

suppression-begin
file: Account.java
rule-id: PB.TYPO.TLS
message: Text label 'case10' may be a typo for 'case 10'
reason: verified
author: annstu
suppression-end
See Defining Suppressions in Suppression Files for details about the suppression format and the complete list of available attributes.

Newly created suppression files are automatically included in added to your project and are displayed in the IDE file tree in the IDE along with other project files.

If you use a source control system to track changes in source code, we recommend that you check in parasoft.suppress files to share your suppressions across the team.

...