How do I make Polyspace Bug Finder ignore source files?

I have a Polyspace project which contains a mixture of in-house code and third-party libraries. I want to run Polyspace Bug Finder R2019b on our in-house code, but the third-party libraries are considered "Software of Unknown Provenance" (SOUP) and we do not care about their results.
Is there a way to tell Polyspace to ignore all files of these third-party libraries (both headers and source), and only display results for the in-house code?

 Accepted Answer

Polyspace Bug Finder has an option called "-do-not-generate-results-for", which provides Polyspace with a list of files or folders that should be included while compiling but which should not be analyzed directly. The effect of this is that results for these files no longer appear.
This setting can be found in the GUI under the "Inputs & Stubbing" section of the project's "Configuration" window.
For more information about this option, execute the following command in the MATLAB R2019b command window to access the specific documentation:
>> web(fullfile(docroot, 'bugfinder/ref/donotgenerateresultsfordonotgenerateresultsfor.html'))
Please follow the link below to search for the required information regarding the current release:

More Answers (0)

Products

Release

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!