In this section:

cpptest.result.line.suppressions.enabled

This setting enables or disables creating regex-based line suppressions.

Acceptable Values

trueEnables creating regex-based line suppressions.
falseDisables creating regex-based line suppressions.

The following configuration enables regex-based line suppressions:

cpptest.result.line.suppressions.enabled=true  

cpptest.result.line.suppressions.pattern

This setting specifies a semicolon-separated list of regex patterns to create line suppressions.

Acceptable Values

[regex]

A regex pattern.

Example Usage

The following configuration suppresses all findings detected on code lines that contain "Q_" anywhere on the line.

cpptest.result.line.suppressions.enabled=true

cpptest.result.line.suppressions.pattern= .*Q_.*


suppression{n}.file.ext

This setting specifies the extension file types that should be scanned for suppression comments.

Acceptable Values

[file extension]

The extension of files that will be searched for suppressions.

Example Usage

The following configuration searches .xml and .java files for suppression comments:

suppression1.file.ext=xml
suppression2.file.ext=java


suppression{n}.comment

This setting specifies the prefix for suppression comments for files specified with the suppression{n}.file.ext property.

Acceptable Values

[comment marker]

The prefix marker for suppression comments.

Example Usage

The following configuration specifies  the // and <!-- prefixes of suppression comments:

suppression1.comment=//
suppression2.comment=<!--

Related


suppression{n}.comment.suffix

This setting specifies the suffix for suppression comments for files specified with the suppression{n}.file.ext property. If this setting is not configured, suppression comments will not be suffixed.

Acceptable Values

[comment marker]

The suffix marker for suppression comments.

Example Usage

The following configuration specifies  the --> suffix of suppression comments:

suppression1.comment.suffix=-->

Related


suppression{n}.block.only

This setting enables or disables block-only comment suppressions support for files specified with the suppression.file.ext property.

Acceptable Values

trueThe block-only comment support for suppressions is enabled.
falseDefault. The block-only comment support for suppressions is disabled.


The following configuration enables the block-only comment support for suppressions.

suppression1.block.only=true

Related


suppression{n}.line.disabled

This setting enables or disables automatic line suppressions in the source code in the IDE. 

Acceptable Values

trueAutomatic line suppressions in the source code are disabled. (Note: Line suppressions can be still manually added by the user).
falseDefault. Automatic line suppressions in the source code are enabled.


The following configuration disables automatic line suppressions in the source code.

suppression1.line.disabled=true

Related

  • No labels