Exclude patterns
Specify folders or files to be excluded from static analysis or testing
Since R2024a
Description
Specify files or folders in a Polyspace Platform project that must be excluded from static analysis or testing.
Set Option
In your Polyspace Platform project configuration, enter paths to exclude for this option on the Project tab.
Why Use This Option
You can add a source folder to a Polyspace® Platform project but exclude a file or subfolder within the folder. To exclude a file, right-click the file in the project and select Exclude File. To exclude a folder, and all files and folders within it, right-click the folder and select Exclude Folder. To exclude multiple files and folders, select the items, right-click the selection, and choose Exclude. These context menu actions exclude the files and folders for all purposes: static analysis or project build and testing.
To exclude a file or subfolder from static analysis or testing only, navigate to the
option Exclude Patterns in the project configuration, and then set the
Exclude For value to Static analysis or
Test.
Settings
If you exclude a source file or folder using the right-click option Exclude
File or Exclude Folder in the project, this file or folder
gets added as a row under Exclude Patterns. In this row, the
Exclude For column shows All, indicating
that the file or folder was excluded from both static analysis and testing.
To exclude the file or folder from static analysis only, select
Static analysis.To exclude the file or folder from project build and testing only, select
Test.
You can also directly enter the path to a file or folder, or use one of these buttons:
Select
to add the absolute path to a file, or
to add a file relative to the project path.Select
to add the absolute path to a folder, or
to add a folder relative to the project path.
To remove a file or folder exclusion, select the corresponding row and click
. Alternatively, right-click the items in the
Projects pane and select Re-include File,
Re-include Folder, or Re-include.
Version History
Introduced in R2024a