HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

mh_metric — Calculate and enforce code metrics for MATLAB or Octave code. More information: <https://florianscha

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandenforcemetricsandclimh_metriccodecalculate

Problem

How to use the mh_metric command: Calculate and enforce code metrics for MATLAB or Octave code. More information: <https://florianschanda.github.io/miss_hit/metrics.html>.

Solution

mh_metric — Calculate and enforce code metrics for MATLAB or Octave code. More information: <https://florianschanda.github.io/miss_hit/metrics.html>.

Print the code metrics for the specified files:
mh_metric {{path/to/file1.m path/to/file2.m ...}}


Print the code metrics for the specified Octave files:
mh_metric --octave {{path/to/file1.m path/to/file2.m ...}}


Print the code metrics for the specified directory recursively:
mh_metric {{path/to/directory}}


Print the code metrics for the current directory:
mh_metric


Print the code metrics report in HTML or JSON format:
mh_metric --{{html|json}} {{path/to/output_file}}

Code Snippets

Print the code metrics for the specified files

mh_metric {{path/to/file1.m path/to/file2.m ...}}

Print the code metrics for the specified Octave files

mh_metric --octave {{path/to/file1.m path/to/file2.m ...}}

Print the code metrics for the specified directory recursively

mh_metric {{path/to/directory}}

Print the code metrics for the current directory

mh_metric

Print the code metrics report in HTML or JSON format

mh_metric --{{html|json}} {{path/to/output_file}}

Context

tldr-pages: common/mh_metric

Revisions (0)

No revisions yet.