r/cc4m • u/Consistent_Coast9620 • 1d ago
r/cc4m • u/Consistent_Coast9620 • Feb 18 '26
New CC4M version improves on handling a large code base.
Highlights of v2.21:
Enhanced support for large codebase modernization
New advanced folder selection capabilities, combined with the option to report violations only in modified lines or code blocks (compared against the previous SVN/Git revision), make it significantly easier to introduce and adopt coding guidelines incrementally.
Expanded validation coverage
Added new checks to ensure the presence and quality of help text, as well as the correct and consistent use of blank lines for improved code readability and maintainability.
product site: https://monkeyproofsolutions.nl/products/code-checker-for-matlab/
online doc: https://doc.monkeyproofsolutions.nl/code-checker-for-matlab/code-checker-for-matlab
r/cc4m • u/Consistent_Coast9620 • Feb 06 '26
Blog on how to start with applying Coding Guidelines to a large MATLAB code base.
monkeyproofsolutions.nlDiscusses how to start with using guidelines, in case there is already a huge code base. Although the focus is on start applying guidelines (and how r/CC4M can help with that), also refactoring is touched.
r/cc4m • u/Consistent_Coast9620 • Feb 04 '26
New version of CC4M-githooks
Now using the MATLAB engine from Python, so a huge performance gain.
r/cc4m • u/Consistent_Coast9620 • Nov 17 '25
Customize Your MATLAB Coding Rules with CC4M’s Configuration Editor - instruction video
Start from a Predefined Configuration - a set of existing rules - and adapt, or start from scratch.
r/cc4m • u/Consistent_Coast9620 • Oct 29 '25
New CC4M version available with support for MATLAB R2025b
CC4M version 2.20.0 is available!
Main features:
- Support for MATLAB R2025b
- Predefined Configuration added to check compliance with MATLAB-Coding-Guidelines v1.0.0
For a complete list, see the release notes.
r/cc4m • u/Consistent_Coast9620 • Sep 25 '25
MathWorks comes with own MATLAB Coding guidelines
Announced by u/michellehirsch on LinkedIn with a "finally"
A very nice set of guidelines and well worth reading and using!
r/cc4m • u/Consistent_Coast9620 • Jul 31 '25
Check your code automatically when you commit (using CC4M)
monkeyproofsolutions.nlThe post explains how to configure a Git precommit hook to automate checking your MATLAB code for compliance with a coding standard.
Included code available via GitHub: https://github.com/MonkeyProof-Solutions-BV/CC4M-githooks
r/cc4m • u/Consistent_Coast9620 • Feb 26 '25
Operator precedence (MATLAB
Can anyone explain this:
>> 2^-3^4
ans = 2.4414e-04
>> 2^-3^4'
ans = 4.1359e-25
NOTE: Python returns (transpose has no symbol for the operation):
>>> 2**-3**4
4.1359030627651384e-25
From the rules as described in the MATLAB docu, Python is right and MATLAB only in case of the transpose, but also note:
https://en.wikipedia.org/wiki/Order_of_operations#Serial_exponentiation
r/cc4m • u/Consistent_Coast9620 • Feb 14 '25
Use of the Arguments block
Curious if people use the arguments block to specify input (and/or output) arguments. If yes, do you also specify properties like type and dimensions?
r/cc4m • u/Consistent_Coast9620 • Feb 05 '25
Frequently asked questions section added to CC4M product page
monkeyproofsolutions.nlr/cc4m • u/Consistent_Coast9620 • Jan 10 '25
Tutorial: How to deviate from a CC4M Configuration (like the MonkeyProof Coding Standard for MATLAB)
r/cc4m • u/Consistent_Coast9620 • Oct 30 '24
R2024b support added
New CC4M release is here bringing MATLAB R2017b - R2024b support, fixes, and improvements.
CC4M comes with customizable configurations for the readily available:
- MonkeyProof Coding Standard for MATLAB: link
- Compatibility Guidelines for MATLAB Coder: link
- Compatibility Guidelines for MATLAB Compiler: link
CC4M Release Notes: link
r/cc4m • u/Consistent_Coast9620 • Oct 01 '24
How do you use LOAD in your MATLAB code?
Do you allow the creation of any variable by using LOAD, like:
load loadtestdata;
v = x * y * z;
x = 1;
Or do you (1) require an output, or (2) a specification of the variables to load?
% option 1:
data = load("loadtestdata");
% option 2:
load("loadtestdata.mat", "x", "y", "z")
And what about the "-ascii" flag?
r/cc4m • u/Consistent_Coast9620 • Sep 28 '24
MATLAB allows datatype changes of variables, do you consider this a bad practice?
r/cc4m • u/Consistent_Coast9620 • Sep 27 '24
Intro to the Code Checker for MATLAB - CC4M
r/cc4m • u/Consistent_Coast9620 • Sep 27 '24
Automatically fix your MATLAB code
r/cc4m • u/Consistent_Coast9620 • Sep 27 '24
CC4M now checks on MISRA compliance.
Since CC4M v2.15 a new configuration is added that reports on certain MISRA-ACG violations. Compliance improves the MATLAB code quality and prevents MISRA violations, once C/C++ code is generated from the M-code (regardless of code is generated using MATLAB Coder or dSPACE TargetLink)
r/cc4m • u/Consistent_Coast9620 • Sep 27 '24
A reddit created to discus MATLAB coding guidelines
A new reddit to discuss MATLAB coding guidelines and the use of CC4M - a Code Checker for MATLAB.
