Jelajahi Sumber

Fixed help description for total lines metric.

avkonst 10 tahun lalu
induk
melakukan
b4492fb477

+ 2 - 2
mainline/ext/std/code/lines.py

@@ -36,8 +36,8 @@ class Plugin(mpp.api.Plugin, mpp.api.MetricPluginMixin, mpp.api.Child, mpp.api.I
                          "number of non-empty lines of comments "
                          "[default: %default]")
         parser.add_option("--std.code.lines.total", "--sclt", action="store_true", default=False,
-                         help="Enables collection of lines of comments metric - "
-                         "number of non-empty lines of comments "
+                         help="Enables collection of total lines metric - "
+                         "number of any type of lines (blank, code, comments, etc.)"
                          "[default: %default]")
     
     def configure(self, options):

+ 3 - 2
mainline/tests/general/test_basic/test_help_collect_default_stdout.gold.txt

@@ -39,8 +39,9 @@ Options:
                         Enables collection of lines of comments metric -
                         number of non-empty lines of comments [default: False]
   --std.code.lines.total, --sclt
-                        Enables collection of lines of comments metric -
-                        number of non-empty lines of comments [default: False]
+                        Enables collection of total lines metric - number of
+                        any type of lines (blank, code, comments,
+                        etc.)[default: False]
   --std.code.mi.simple, --scms
                         Enables collection of simple maintainability index
                         metric. It uses std.code.line:code,