polyspace-catalog-bundler
(DOS/UNIX) Create user-defined Polyspace coding standards at the DOS or UNIX command line
Since R2024b
Syntax
Description
Note
This Polyspace® command is available in
. Here,
polyspaceroot
\polyspace\bin
is the Polyspace installation folder, for example, polyspaceroot
C:\Program
Files\Polyspace\R2024b
. (See also Installation Folder for desktop products or Installation Folder for server products). To avoid typing the full path to
this command, add this location to the PATH
environment variable in
your operating system.
polyspace-catalog-bundler import -catalog
creates the user-defined coding standard (Definition
-bundle UserDefinedCodingStandard
.pschk
)
UserDefinedCodingStandard
using the definition specified in the
file Definition
. A user-defined coding standard is a collection of
coding rules that Polyspace can check by using existing Polyspace
Bug Finder™ defect and coding rule checkers. In the file
Definition
, you specify how the coding rules in the custom standard
relate to the existing Polyspace checkers. After running the command, you can use the user-defined coding
standard file (.pschk
) as an input to the option Checkers activation
file (-checkers-activation-file)
to check for violations of the coding
rules in the user-defined coding standard. When running a Polyspace
Bug Finder analysis using the standard UserDefinedCodingStandard
,
Polyspace calculates a unique checksum using the SARIF file in
Definition
and shows the checksum in the analysis log. This
checksum indicates whether the SARIF file in Definition
changed since
your last analysis.
polyspace-catalog-bundler import -catalog
creates the user-defined coding standard Definition
-bundle UserDefinedCodingStandard
-identifier standardID
UserDefinedCodingStandard
and associates an identifier standardID
to the standard. When you run
a Polyspace
Bug Finder analysis using the standard UserDefinedCodingStandard
,
Polyspace shows the identifier standardID
in the analysis log in
addition to the checksum of the SARIF file in Definition
.
Examples
Input Arguments
Version History
Introduced in R2024b