test_help_collect_default_stdout.gold.txt 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. Usage: python metrix++.py --help
  2. python metrix++.py collect --help
  3. python metrix++.py collect [options] -- [path 1] ... [path N]
  4. Options:
  5. -h, --help show this help message and exit
  6. --db-file=DB_FILE, --dbf=DB_FILE
  7. Path to a database file to create and write [default:
  8. ./metrixpp.db].
  9. --db-file-prev=DB_FILE_PREV, --dbfp=DB_FILE_PREV
  10. Path to database file with data collected for the
  11. past/previous code revision. If it is set, the tool
  12. will do an incremental/iterative collection. It may
  13. reduce the time of processing significantly [default:
  14. none].
  15. --log-level=LOG_LEVEL, --ll=LOG_LEVEL
  16. Defines log level. Possible values are
  17. 'DEBUG','INFO','WARNING' or 'ERROR'. Default value is
  18. inherited from environment variable
  19. 'METRIXPLUSPLUS_LOG_LEVEL' if set. [default: INFO]
  20. --std.code.complexity.cyclomatic, --sccc
  21. Enables collection of cyclomatic complexity metric
  22. (McCabe) [default: False]
  23. --std.code.complexity.maxindent, --sccmi
  24. Enables collection of maximum indent level metric
  25. [default: False]
  26. --std.code.cpp.files=STD.CODE.CPP.FILES
  27. Enumerates filename extensions to match C/C++ files
  28. [default: *.c,*.h,*.cpp,*.hpp,*.cc,*.hh,*.cxx,*.hxx]
  29. --std.code.cs.files=STD.CODE.CS.FILES
  30. Enumerates filename extensions to match C# files
  31. [default: *.cs]
  32. --std.code.filelines.code, --scflc
  33. Enables collection of lines of code metric (per file
  34. detalization) - number of non-empty lines of code,
  35. excluding comments [default: False]
  36. --std.code.filelines.preprocessor, --scflp
  37. Enables collection of lines of preprocessor code
  38. metric (per file detalization) - number of non-empty
  39. lines of preprocessor code [default: False]
  40. --std.code.filelines.comments, --scflcom
  41. Enables collection of lines of comments metric (per
  42. file detalization) - number of non-empty lines of
  43. comments [default: False]
  44. --std.code.filelines.total, --scflt
  45. Enables collection of total lines metric (per file
  46. detalization) - number of any type of lines (blank,
  47. code, comments, etc.)[default: False]
  48. --std.code.java.files=STD.CODE.JAVA.FILES
  49. Enumerates filename extensions to match Java files
  50. [default: *.java]
  51. --std.code.length.total, --sclent
  52. Enables collection of size metric (in number of
  53. symbols per region) [default: False]
  54. --std.code.lines.code, --sclc
  55. Enables collection of lines of code metric (per region
  56. detalization) - number of non-empty lines of code,
  57. excluding comments [default: False]
  58. --std.code.lines.preprocessor, --sclp
  59. Enables collection of lines of preprocessor code
  60. metric (per region detalization) - number of non-empty
  61. lines of preprocessor code [default: False]
  62. --std.code.lines.comments, --sclcom
  63. Enables collection of lines of comments metric (per
  64. region detalization) - number of non-empty lines of
  65. comments [default: False]
  66. --std.code.lines.total, --sclt
  67. Enables collection of total lines metric (per region
  68. detalization) - number of any type of lines (blank,
  69. code, comments, etc.)[default: False]
  70. --std.code.longlines, --scll
  71. Enables collection of long lines metric [default:
  72. False]
  73. --std.code.longlines.limit=STD.CODE.LONGLINES.LIMIT, --sclll=STD.CODE.LONGLINES.LIMIT
  74. Modifies the limit for maximum line-length [default:
  75. 80]
  76. --std.code.magic.numbers, --scmn
  77. Enables collection of magic numbers metric [default:
  78. False]
  79. --std.code.magic.numbers.simplier, --scmns
  80. Is set, 0, -1 and 1 numbers are not counted in
  81. 'std.code.magic.numbers' metric [default: False]
  82. --std.code.member.fields, --scmf
  83. Enables collection of number of data members / fields
  84. per classes, structs and interfaces [default: False]
  85. --std.code.member.globals, --scmg
  86. Enables collection of number of global variables /
  87. fields per global regions and namespaces [default:
  88. False]
  89. --std.code.member.classes, --scmc
  90. Enables collection of number of classes defined per
  91. any region [default: False]
  92. --std.code.member.structs, --scms
  93. Enables collection of number of structs defined per
  94. any region [default: False]
  95. --std.code.member.interfaces, --scmi
  96. Enables collection of number of interfaces defined per
  97. any region [default: False]
  98. --std.code.member.types, --scmt
  99. Enables collection of number of types (classes,
  100. structs or interface) defined per any region [default:
  101. False]
  102. --std.code.member.methods, --scmm
  103. Enables collection of number of methods (functions)
  104. defined per any region [default: False]
  105. --std.code.member.namespaces, --scmnss
  106. Enables collection of number of namespaces defined
  107. globally and enclosed (sub-namespaces) [default:
  108. False]
  109. --std.code.maintindex.simple, --scmis
  110. Enables collection of simple maintainability index
  111. metric. It uses std.code.line:code,
  112. std.code.complexity:cyclomatic metrics to rank level
  113. of maintainability. Lower value of this metric
  114. indicates better maintainability. [default: False]
  115. --std.code.ratio.comments, --scrc
  116. Enables collection of comment ratio metric (per region
  117. detalization) - ratio of non-empty lines of comments
  118. to non-empty lines of (code + comments). It uses
  119. std.code.lines.code, std.code.lines.comments metrics
  120. to calculate the ratio. [default: False]
  121. --std.code.todo.comments, --sctc
  122. Enables collection of number of todo/fixme/etc markers
  123. in comments [default: False]
  124. --std.code.todo.strings, --scts
  125. Enables collection of number of todo/fixme/etc markers
  126. in strings [default: False]
  127. --std.code.todo.tags=STD.CODE.TODO.TAGS, --sctt=STD.CODE.TODO.TAGS
  128. A list of typical todo markers to search, separated by
  129. comma [default: TODO,ToDo,FIXME,FixMe,TBD,HACK,XXX]
  130. --std.suppress, --ss If set (True), suppression markers are collected from
  131. comments in code. Suppressions are used by post-
  132. processing tools, like limit, to remove false-positive
  133. warnings. Suppressions should be in the first comment
  134. block of a region (function/class/interface). Format
  135. of suppressions: 'metrix++: suppress metric-name'. For
  136. example: 'metrix++: suppress
  137. std.code.complexity:cyclomatic'. [default: False]
  138. --std.general.proctime, --sgpt
  139. If the option is set (True), the tool measures
  140. processing time per file [default: False]
  141. --std.general.procerrors, --sgpe
  142. If the option is set (True), the tool counts number of
  143. processing/parsing errors per file [default: False]
  144. --std.general.size, --sgs
  145. If the option is set (True), the tool collects file
  146. size metric (in bytes) [default: False]
  147. --include-files=INCLUDE_FILES, --if=INCLUDE_FILES
  148. Adds a regular expression pattern to include files in
  149. processing (files have to match any rule to be
  150. included)
  151. --exclude-files=EXCLUDE_FILES, --ef=EXCLUDE_FILES
  152. Adds a regular expression pattern to exclude files or
  153. directories by name from processing
  154. --exclude-directories=EXCLUDE_DIRECTORIES, --ed=EXCLUDE_DIRECTORIES
  155. Adds a regular expression pattern to exclude
  156. directories by path from processing
  157. --non-recursively, --nr
  158. If the option is set (True), sub-directories are not
  159. processed [default: False]