nexus_checkcode_analyze
matlab_compat · scripts/matlab_compat/nexus_checkcode_analyze.m
NEXUS_CHECKCODE_ANALYZE Static Code Analyzer rules for checkcode/mlint.
MATLAB R2026a decisions (nexus#1902, nexus#1921):
- Message struct fields: message, fix, line, column; plus id with -id.
- column is [start end] (1-based); single-column spans use [c c].
- ORWAD (older docs) is OR2/AND2 in R2026a.
- SHADOW family for file/function mismatch is FNDEF.
- Local var shadowing a prior function/builtin use is NODEF
("Variable might be used before it is defined.", fix=0) at the use site.
Simple assignment alone to a builtin name does not warn (R2026a).
- McCabe messages use id CABE (-cyc) / MCABE (-modcyc).
- Backlog C1073 / C4001 / C1771 map to MATLAB ids UNRCH, TNOW1+RAND,
and FNAN+CHAIN respectively (R2026a checkcode -id / -allmsg).