Main Content

Exclude paths

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. This action excludes the file for all purposes: static analysis or project build and testing.

To exclude a file or subfolder from static analysis or testing only, use the option Exclude paths.

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 paths. 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 Add file button to add the absolute path to a file, or Add file as relative path button to add a file relative to the project path.

  • Select Add folder button to add the absolute path to a folder, or Add folder as relative path button to add a folder relative to the project path.

To remove a file or folder exclusion, select the corresponding row and click Remove selected button.

Version History

Introduced in R2024a