5 Predefined configurations
As described in Section 3.3.2↑
, you can select a predefined configuration and use it for checking your code.
The predefined configurations currently available are:
MonkeyProofSolutions: A generic and complete set of configurations used by MonkeyProof Solutions developers, usable by anyone who wants to write clean, readable and stable m-code. The coding standards document for this is available on our website.
CoderCompatibility: Use this configuration to help you identify parts of your code that are (potentially) not Coder-compatible. M-code that is not Coder-compatible cannot be used to generate C or C++ code. The coding standards document for this is available on our website.
MAB/MAAB: The latest MAB (Mathworks Advisory Board) coding standards (previously MAAB) incorporate the modeling rules of JMAAB v5.1 and MAAB v3.0. Also see the Mathworks. The MAB coding standards are for the usage of MATLAB, Simulink, Stateflow and Embedded Coder. The standards for MATLAB are configured in this predefined set of configurations.
JMAAB: The JMAAB (Japan MATLAB Automotive Advisory Board) has developed a set of coding standards mostly for Simulink models. There are several standards for the MATLAB code of your models, which are configured in this predefined set of configurations.
After installing the Code Checker for MATLAB toolbox, the predefined configuration MonkeyProofSolutions becomes active.
If you want to open one of these configurations, switch to Predefined on the Configuration tab of the Code Checker for MATLAB GUI, select the configuration of your choice and click Open and the Configuration Editor opens. If you want to save the configuration, the Save button will be disabled, because it is not allowed to save configuration files in the folder for predefined configurations. You will have to save the file in a different location, with Save as. The configuration file is then considered a Custom configuration.
You can obtain a list of all available configurations by using
configFiles = listPredefinedConfigurations()
which returns a cell array of all predefined configurations shipped with Code Checker for MATLAB.
From the MATLAB command window a predefined configuration can be activated by using
(with MonkeyProofSolutions the name of the predefined configuration set) and a configuration will open in the Configuration Editor by using