Applying advanced exclusions
Tailor your project's analysis by applying advanced exclusions based on file content, specific code blocks, and defined coding rules.
In very specific situations, you may have to:
Exclude files based on the file content.
Exclude blocks within files.
Exlude specific files from specific coding rules.
Excluding files based on file content
You can exclude from the analysis files that contain a block of code matching a given regular expression. You can enter one or more regular expression patterns. Any file containing at least one of the specified patterns will be ignored.
The parameter to be configured is Ignore Issues on Files. For a configuration example of this parameter, see below.
To define the Ignore Issues on Files parameter:
Retrieve your project. SeeRetrieving projects for more information.
Go to Project Settings > General Settings > Analysis scope.
In D. Issue Exclusions > Ignore Issues on Files, enter and save a regular expression pattern.
You can enter a second regular expression pattern and so on.
Excluding blocks within files
You can exclude from the analysis specific blocks contained in any source file (The rest of the file will be analyzed.). The parameter to be configured is Ignore Issues in Blocks.
Excluding specific files from specific coding rules
This section explains how to exclude specific files from specific coding rules in your project analysis.
Related pages
Other adjustments for analysis scope
Adjusting the analysis scope Introduction
Last updated
Was this helpful?