From cd107da48b486527454e8ce8a9e6d31dc9b44c6a Mon Sep 17 00:00:00 2001 From: Axel Navarro Date: Fri, 25 Mar 2022 17:27:18 -0300 Subject: [PATCH] mh_metric: add page (#7912) --- pages/common/mh_metric.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/common/mh_metric.md diff --git a/pages/common/mh_metric.md b/pages/common/mh_metric.md new file mode 100644 index 0000000000..529cab800f --- /dev/null +++ b/pages/common/mh_metric.md @@ -0,0 +1,24 @@ +# mh_metric + +> Calculate and enforce code metrics for MATLAB or Octave code. +> More information: . + +- 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}}`