123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- Usage: python metrix++.py --help
- python metrix++.py limit --help
- python metrix++.py limit [options] -- [path 1] ... [path N]
- Options:
- -h, --help show this help message and exit
- --db-file=DB_FILE, --dbf=DB_FILE
- Path to a database file to read and process [default:
- ./metrixpp.db].
- --db-file-prev=DB_FILE_PREV, --dbfp=DB_FILE_PREV
- Path to database file with data collected for the
- past/previous code revision. It is used to identify
- and evaluate/analyze change trends. [default: none].
- --log-level=LOG_LEVEL, --ll=LOG_LEVEL
- Defines log level. Possible values are
- 'DEBUG','INFO','WARNING' or 'ERROR'. Default value is
- inherited from environment variable
- 'METRIXPLUSPLUS_LOG_LEVEL' if set. [default: INFO]
- --hotspots=HOTSPOTS, --hs=HOTSPOTS
- If not set (none), all exceeded limits are printed. If
- set, exceeded limits are sorted (the worst is the
- first) and only first HOTSPOTS limits are printed.
- [default: none]
- --disable-suppressions, --ds
- If not set (none), all suppressions are ignored and
- associated warnings are printed. [default: False]
- --warn-mode=WARN_MODE, --wm=WARN_MODE
- Defines the warnings mode. 'all' - all warnings
- active, 'new' - warnings for new regions/files only,
- 'trend' - warnings for new regions/files and for bad
- trend of modified regions/files, 'touched' - warnings
- for new and modified regions/files [default: all]
- --min-limit=MIN_LIMIT, --min=MIN_LIMIT
- A threshold per 'namespace:field' metric in order to
- select regions, which have got metric value less than
- the specified limit. This option can be specified
- multiple times, if it is necessary to apply several
- limits. Should be in the format: <namespace>:<field
- >:<limit-value>[:region_type[,region_type]], for
- example: 'std.code.lines:comments:1', or
- 'std.code.lines:comments:1:function,class'. Region
- types is optional specifier, and if not defined the
- limit is applied to regions of all types.
- --max-limit=MAX_LIMIT, --max=MAX_LIMIT
- A threshold per 'namespace:field' metric in order to
- select regions, which have got metric value more than
- the specified limit. This option can be specified
- multiple times, if it is necessary to apply several
- limits. Should be in the format: <namespace>:<field
- >:<limit-value>[:region_type[,region_type]], for
- example: 'std.code.complexity:cyclomatic:7', or
- 'std.code.complexity:maxdepth:5:function'. Region
- types is optional specifier, and if not defined the
- limit is applied to regions of all types.
|