Introduction
What is CC4M?
CC4M is a tool to easily check your MATLAB Code, Simulink Models, and Stateflow Charts against your company's or your team's coding standard. CC4M includes a convenient approach to easily configure and run checks. Furthermore, CC4M provides an M-Code analyzer to enable running checks on variables and functions as easy as checks on Simulink and Stateflow properties.
Concept
CC4M includes an M-code analyzer that is separated from the configurable checks infrastructure in such a way that the checks can reuse the results of the M-code analyzer.
Metrics and configurable checks are provided, along with a set of Configuration Files. To divert from the predefined configurations, the Configuration Editor allows for creating your own configuration file. If needed, it is also possible to add custom, user-defined checks to CC4M. If you are interested in authoring your own checks, please contact us at info@monkeyproofsolutions.nl so that you can receive the documentation for this.
The combination of the configuration file, the collection of checks and the M-code analyzer output together are the input for the checker (see figure Architecture of CC4M). The checker generates the report containing the results of all checks as configured via the configuration file and applied to the analyzed code. The interactive report contains links to the rule violations in your code, to the configuration file representing your MATLAB coding rules, and to the coding standards whose standards and rules are reflected by the configuration file.
