Excluding issues with filter files
You can create a file to filter out particular vulnerability instances, rules, and vulnerability categories when you run the sourceanalyzer command. You specify the file with the -filter analysis option.
A filter file is a text file that you can create with any text editor. You specify only the filter items that you do not want in this file.
The filter types described in this section apply to both filter files and scan policy files (see Applying a Scan Policy to the Analysis).
The following table lists the available filter types and provides examples for each.
| Filter type | Notes | Examples |
|---|---|---|
| Category | A category only covers all subcategories OpenText SAST applies category filters in the initialization phase before any analysis has taken place. |
|
Instance ID | An instance ID of a specific issue OpenText SAST applies instance ID filters after the analysis phase. |
|
Rule ID | A rule ID that leads to the reporting of a specific issue OpenText SAST applies rule ID filters in the initialization phase before any analysis has taken place. |
|
Priority1 | The priority values in ascending order are |
|
| Taint flags | Enclose taint flag expressions in parentheses. Use the logical |
|
| Impact1 |
| |
| Likelihood1 |
| |
| Confidence1 |
| |
| Probability1 |
| |
| Accuracy1 |
|
1For the priority and metadata filters, use less than (<) or less than or equal to (<=).
See Also