test_help_limit_default_stdout.gold.txt 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. Usage: python metrix++.py --help
  2. python metrix++.py limit --help
  3. python metrix++.py limit [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 read and process [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. It is used to identify
  12. and evaluate/analyze change trends. [default: none].
  13. --log-level=LOG_LEVEL, --ll=LOG_LEVEL
  14. Defines log level. Possible values are
  15. 'DEBUG','INFO','WARNING' or 'ERROR'. Default value is
  16. inherited from environment variable
  17. 'METRIXPLUSPLUS_LOG_LEVEL' if set. [default: INFO]
  18. --hotspots=HOTSPOTS, --hs=HOTSPOTS
  19. If not set (none), all exceeded limits are printed. If
  20. set, exceeded limits are sorted (the worst is the
  21. first) and only first HOTSPOTS limits are printed.
  22. [default: none]
  23. --disable-suppressions, --ds
  24. If not set (none), all suppressions are ignored and
  25. associated warnings are printed. [default: False]
  26. --warn-mode=WARN_MODE, --wm=WARN_MODE
  27. Defines the warnings mode. 'all' - all warnings
  28. active, 'new' - warnings for new regions/files only,
  29. 'trend' - warnings for new regions/files and for bad
  30. trend of modified regions/files, 'touched' - warnings
  31. for new and modified regions/files [default: all]
  32. --min-limit=MIN_LIMIT, --min=MIN_LIMIT
  33. A threshold per 'namespace:field' metric in order to
  34. select regions, which have got metric value less than
  35. the specified limit. This option can be specified
  36. multiple times, if it is necessary to apply several
  37. limits. Should be in the format: <namespace>:<field
  38. >:<limit-value>[:region_type[,region_type]], for
  39. example: 'std.code.lines:comments:1', or
  40. 'std.code.lines:comments:1:function,class'. Region
  41. types is optional specifier, and if not defined the
  42. limit is applied to regions of all types.
  43. --max-limit=MAX_LIMIT, --max=MAX_LIMIT
  44. A threshold per 'namespace:field' metric in order to
  45. select regions, which have got metric value more than
  46. the specified limit. This option can be specified
  47. multiple times, if it is necessary to apply several
  48. limits. Should be in the format: <namespace>:<field
  49. >:<limit-value>[:region_type[,region_type]], for
  50. example: 'std.code.complexity:cyclomatic:7', or
  51. 'std.code.complexity:maxdepth:5:function'. Region
  52. types is optional specifier, and if not defined the
  53. limit is applied to regions of all types.