1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-02 01:35:23 +02:00
tldr/pages/common/mh_metric.md

25 lines
622 B
Markdown
Raw Normal View History

2022-03-25 17:27:18 -03:00
# mh_metric
> Calculate and enforce code metrics for MATLAB or Octave code.
> More information: <https://misshit.org>.
- 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}}`