test_help_collect_default_stdout.gold.txt 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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.cs.files=STD.CODE.CS.FILES
  21. Enumerates filename extensions to match C# files
  22. [default: *.cs]
  23. --std.code.complexity.cyclomatic, --sccc
  24. Enables collection of cyclomatic complexity metric
  25. (McCabe) [default: False]
  26. --std.code.complexity.maxindent, --sccmi
  27. Enables collection of maximum indent level metric
  28. [default: False]
  29. --std.code.lines.code, --sclc
  30. Enables collection of lines of code metric - number of
  31. non-empty lines of code, excluding comments [default:
  32. False]
  33. --std.code.lines.preprocessor, --sclp
  34. Enables collection of lines of preprocessor code
  35. metric - number of non-empty lines of preprocessor
  36. code [default: False]
  37. --std.code.lines.comments, --sclcom
  38. Enables collection of lines of comments metric -
  39. number of non-empty lines of comments [default: False]
  40. --std.code.lines.total, --sclt
  41. Enables collection of total lines metric - number of
  42. any type of lines (blank, code, comments,
  43. etc.)[default: False]
  44. --std.code.mi.simple, --scms
  45. Enables collection of simple maintainability index
  46. metric. It uses std.code.line:code,
  47. std.code.complexity:cyclomatic metrics to rank level
  48. of maintainability. Lower value of this metric
  49. indicates better maintainability. [default: False]
  50. --std.code.length.total, --sclent
  51. Enables collection of size metric (in number of
  52. symbols per region) [default: False]
  53. --std.code.cpp.files=STD.CODE.CPP.FILES
  54. Enumerates filename extensions to match C/C++ files
  55. [default: *.c,*.h,*.cpp,*.hpp,*.cc,*.hh,*.cxx,*.hxx]
  56. --std.code.java.files=STD.CODE.JAVA.FILES
  57. Enumerates filename extensions to match Java files
  58. [default: *.java]
  59. --std.code.todo.comments, --sctc
  60. Enables collection of number of todo/fixme/etc markers
  61. in comments [default: False]
  62. --std.code.todo.strings, --scts
  63. Enables collection of number of todo/fixme/etc markers
  64. in strings [default: False]
  65. --std.code.todo.tags=STD.CODE.TODO.TAGS, --sctt=STD.CODE.TODO.TAGS
  66. A list of typical todo markers to search, separated by
  67. comma [default: TODO,ToDo,FIXME,FixMe,TBD,HACK,XXX]
  68. --std.code.magic.numbers, --scmn
  69. Enables collection of magic numbers metric [default:
  70. False]
  71. --std.code.magic.numbers.simplier, --scmns
  72. Is set, 0, -1 and 1 numbers are not counted in
  73. 'std.code.magic.numbers' metric [default: False]
  74. --std.suppress, --ss If set (True), suppression markers are collected from
  75. comments in code. Suppressions are used by post-
  76. processing tools, like limit, to remove false-positive
  77. warnings. Suppressions should be in the first comment
  78. block of a region (function/class/interface). Format
  79. of suppressions: 'metrix++: suppress metric-name'. For
  80. example: 'metrix++: suppress
  81. std.code.complexity:cyclomatic'. [default: False]
  82. --std.general.proctime, --sgpt
  83. If the option is set (True), the tool measures
  84. processing time per file [default: False]
  85. --std.general.procerrors, --sgpe
  86. If the option is set (True), the tool counts number of
  87. processing/parsing errors per file [default: False]
  88. --std.general.size, --sgs
  89. If the option is set (True), the tool collects file
  90. size metric (in bytes) [default: False]
  91. --include-files=INCLUDE_FILES, --if=INCLUDE_FILES
  92. Defines the regular expression pattern to include
  93. files in processing [default: .*]
  94. --exclude-files=EXCLUDE_FILES, --ef=EXCLUDE_FILES
  95. Defines the regular expression pattern to exclude
  96. files from processing [default: ^[.]]
  97. --non-recursively, --nr
  98. If the option is set (True), sub-directories are not
  99. processed [default: False]