LinuxCommandLibrary

mh_metric

calculates MATLAB code metrics

TLDR

Calculate metrics

$ mh_metric [file.m]
copy
Analyze directory
$ mh_metric [src/]
copy
Output JSON
$ mh_metric --json [file.m]
copy
Show all metrics
$ mh_metric --all [file.m]
copy
Set threshold
$ mh_metric --limit-complexity [10] [file.m]
copy

SYNOPSIS

mh_metric [options] files

DESCRIPTION

mh_metric calculates MATLAB code metrics. It measures complexity, lines, and other quality indicators.
The tool is part of MISS_HIT. It provides cyclomatic complexity and function metrics.

PARAMETERS

FILES

MATLAB files to analyze.
--json
Output as JSON.
--all
Show all metrics.
--limit-complexity N
Complexity threshold.
--help
Display help information.

CAVEATS

Part of MISS_HIT. MATLAB specific. Python-based.

HISTORY

mhmetric is part of **MISSHIT** for measuring MATLAB/Simulink code quality metrics.

SEE ALSO

mh_lint(1), mh_style(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community