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.
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.
Along with six reports (defined variables, defined functions, a dependency report, a list of all required mex-files, a report on cyclomatic complexity, and a report of == and ~= comparisons) a set of configurable checks is provided. The configuration of these checks is performed via a configuration file that can be edited interactively. On the roadmap even support for custom, user-defined checks is mentioned. If you are interested in having your own checks, please contact us at email@example.com.
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.
CC4M can be used with a standard license and a Pro license. The Pro license features are about the MATLAB command window interface, for more information about these features see section Pro features.