Skip to content

mlintmex

matlab_compat · scripts/matlab_compat/mlintmex.m

MLINTMEX  Undocumented Code Analyzer engine (checkcode-backed).

  In MATLAB R2026a, mlintmex is an undocumented builtin that checkcode
  calls via matlab.internal.codeanalyzer.getMessages.  Nexus implements a
  functional equivalent on top of checkcode so toolbox packaging and
  scripts that call mlintmex directly keep working.

  S = mlintmex ('-struct', '-id', FILE, ...) returns a column cell array
  (one cell per FILE).  Each cell is a struct array with fields:
    loc      - [line, col_start, col_end] (double row)
    id       - message id (e.g. 'NASGU', 'NOPRT')
    message  - message text
    fix      - 0/1 autofix flag

  T = mlintmex ('-id', FILE) returns a char report:
    L <line> (C <col>): <ID>: <message>

  T = mlintmex (FILE) is the same without IDs in the text.

  See also checkcode, mlint, mlintrpt.