Versions Compared

Key

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

You can prevent 

...

dotTEST

from prevent dotTESTfrom reporting specific static analysis findings by defining suppressions. Suppressions are useful when you generally follow a rule, but decide to ignore that rule in an isolated number of exceptional situations. If you do not want to receive findings for any violations of a specific rule, disable the rule in the test configuration.

Suppressions Suppression schemes can be defined in the source code with the syntax specified below. If you are using an IDE, you can store the information about suppressions in your code, on DTP, or locally in an XML file (for desktop use); see Suppressing Findings

...

Line Suppression Examples

Code Block
// parasoft-suppress CODSTA "suppress all rules in category CODSTA"

// parasoft-suppress CODSTA.NEA "suppress rule CODSTA.NEA"

// parasoft-suppress CODSTA-1 "suppress all rules in category CODSTA with severity level 1"

// parasoft-suppress ALL "suppress all rules"

// parasoft-suppress CODSTA FORMAT.MCH JAVADOC-3 "suppress all rules in category CODSTA and rule FORMAT.MCH and all rules in category JAVADOC with severity level 3"

...