Up Main page

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:
After installing the Code Checker for MATLAB toolbox, the predefined configuration MonkeyProof MATLAB Coding Standard++ 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
monkeyproof.cc4m.activateConfigurationFile(’MonkeyProof MATLAB Coding Standard++’)
(with MonkeyProof MATLAB Coding Standard++ the name of the predefined configuration set) and a configuration will open in the Configuration Editor by using
monkeyproof.cc4m.openConfigurationFile(’MonkeyProof MATLAB Coding Standard++’).
Up Main page