polyspace.CodingRulesOptions Class
Namespace: polyspace
Create custom list of coding rules to check
Description
Create a custom list of coding rules to check in a Polyspace® analysis.
Note
Before you run Polyspace from MATLAB®, you must link your Polyspace and MATLAB installations. See Integrate Polyspace with MATLAB and Simulink or Integrate Polyspace Server Products with MATLAB.
Construction
creates
the coding rules object ruleList
= polyspace.CodingRulesOptions(RuleSet
)ruleList
for the RuleSet
coding
rule set. Set the active rules in the coding rules object.
Input Arguments
Properties
For each coding rule set, an object is created with all supported rules divided into sections. By default, all rules are on. To turn off a rule, set the rule to false. For example:
misraRules = polyspace.CodingRulesOptions('misraC');
misraRules.Section_20_Standard_libraries.rule_20_1 = false;
Copy Semantics
Value. To learn how value classes affect copy operations, see Copying Objects.
Examples
Version History
Introduced in R2016b