Working with Suppressions from the Command Line
- To merge problem state assignments from one existing result to another, use themerge-statesoption. State assignments from the merge-from result are used to update state assignments in the merge-to result. Problem states in the merge-to result are edited according to a set of rules.
Limitations of Suppression Rules
Tips for Working with Suppression Files
- Suppression rules are based on results for a particular analysis type, so the same general category of analysis must be used to generate a suppression file and when using it in subsequent analysis runs. For example, you would use one set of suppression files for threading error analysis, and a different set for memory error analysis.
- Put all suppression files created for a specific type of analysis in a single, standard suppressions directory. This allows you to apply all the suppression files in this directory simply by specifying the directory path.To make it easy to switch between the GUI and the command line, store suppression files in the standard suppressions directory:./My Inspector Results-[project name]/suppressions.
- You may use the same suppression file for multiple analysis runs, and may create and apply additional suppression files as needed.
- Each suppression rule has some overhead associated with it, so it can be worthwhile to edit the suppression file and combine multiple related rules.
- Conversion of third-party suppression files can only be performed through the command line.
- Suppressions can also be applied when generating a report.