Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

You can prevent 

...

Jtest

prevent Jtest from 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.

...

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"

...