Skip to content

checkcode_exit_status

matlab_compat · scripts/matlab_compat/checkcode_exit_status.m

CHECKCODE_EXIT_STATUS  CI-friendly exit code from checkcode batch results.

  status = checkcode_exit_status(info)

  Returns 0 when there are no error-class messages, otherwise 1.
  Error-class: message id PARSE/SYNER/SYNOP, or message text containing
  "parse error" (case-insensitive). Matches codeIssues.exitCode /
  CodeIssuesTask ErrorThreshold=0 (warnings alone do not fail CI).

  info may be a struct array (single file) or a cell array of struct
  arrays (directory / multi-file batch).

  See also checkcode, codeIssues, mlint.