Attempt to find bugs in MATLAB or Octave code. Please note that this tool is neither sound nor complete. More information: https://misshit.org.
mh_lint
mh_lint path/to/directory
mh_lint path/to/file.m
mh_lint --octave path/to/file.m