polyspace-query-language
(System Command) Create and test user-defined coding standards and user-defined coding rules
Since R2026a
Syntax
Description
Note
This Polyspace® command is available in . Here, polyspaceroot\polyspace\bin is the Polyspace installation folder, for instance, polyspacerootC:\Program Files\Polyspace\R2026a (see also Installation Folder (Polyspace Code Prover)
for desktop products or Installation Folder (Polyspace Code Prover)
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-query-language init initializes a user-defined coding
standard. In the current directory, it creates the necessary files to create the user
defined coding standard, including main.pql and
pql.json. The file main.pql is the entry
point for subsequent polyspace-query-language commands. Create
your coding standard and coding rules assuming the main.pql file
as the entry point. The file pql.json is a configuration object
and does not need to be modified. In addition, this command copies a folder
.polyspace in the current folder. This folder contains the
definition of supported classes and their predicates.
polyspace-query-language package creates a user-defined coding
standard (.pschk) based on the specification in the file
main.pql located in the current directory.
polyspace-query-language test
runs a Polyspace
Bug Finder™ analysis on TestOptions SourceFile AnalysisOptionsSourceFile using the user-defined coding
standard created by main.pql. The test passes if expected violations
are present in the result. The options in TestOptions are passed to
the Polyspace
Bug Finder analysis.
Examples
Input Arguments
Version History
Introduced in R2026a