What is MISS_HIT?
- MH Style - A configurable style checker and code formatter (sometimes also called code beautifier or pretty printer). It can take any MATLAB or Octave code and fix e.g. indentation and other style problems.
- MH Metrics - A code metrics tool, that can produce a variety of complexity metrics for your code. It includes a justification mechanism so that you can use this tool in CI, and HTML reports.
- MH Lint - A bug-finding static analysis tool, that can detect some questionable, ambiguous, or misleading constructs in your code.
- MH Trace - simple tool to extrace tags from source and tests to help demonstrate requirements traceability.
- MH Copyright - A tool that can simplify maintaining and updating copyright notices and docstrings in your code.
Example
function rv= foo (x), if x < 0,,rv=- x;else,rv=x;,; end;
Into something more readable:
function rv = foo (x) if x < 0 rv = -x; else rv = x; end
Quick start
$ pip3 install miss_hitThen, you can style-check your program, by simply using:
$ mh_style --fix my_program.mPlease refer to the online documentation on GitHub for more details.
What makes MISS_HIT good?
- It is completely stand-alone. It does not require a working MATLAB or Octave setup.
- It is not just a bag of reg-ex, or a wrapper arounds some undocumented MATLAB internals. It is based on a feature complete lexer and parser, which supports every single weird feature of the MATLAB language.
- It contains features specifically for huge industrial code-bases (i.e. millions of lines): multi-threaded analysis and a sophisticated configuration and justification mechanism.
- Designed for both interactive use during development, and integration into modern CI environments.