123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144 |
- Usage: python metrix++.py --help
- python metrix++.py collect --help
- python metrix++.py collect [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 create and write [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. If it is set, the tool
- will do an incremental/iterative collection. It may
- reduce the time of processing significantly [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]
- --std.code.complexity.cyclomatic, --sccc
- Enables collection of cyclomatic complexity metric
- (McCabe) [default: False]
- --std.code.complexity.maxindent, --sccmi
- Enables collection of maximum indent level metric
- [default: False]
- --std.code.cpp.files=STD.CODE.CPP.FILES
- Enumerates filename extensions to match C/C++ files
- [default: *.c,*.h,*.cpp,*.hpp,*.cc,*.hh,*.cxx,*.hxx]
- --std.code.cs.files=STD.CODE.CS.FILES
- Enumerates filename extensions to match C# files
- [default: *.cs]
- --std.code.filelines.code, --scflc
- Enables collection of lines of code metric (per file
- detalization) - number of non-empty lines of code,
- excluding comments [default: False]
- --std.code.filelines.preprocessor, --scflp
- Enables collection of lines of preprocessor code
- metric (per file detalization) - number of non-empty
- lines of preprocessor code [default: False]
- --std.code.filelines.comments, --scflcom
- Enables collection of lines of comments metric (per
- file detalization) - number of non-empty lines of
- comments [default: False]
- --std.code.filelines.total, --scflt
- Enables collection of total lines metric (per file
- detalization) - number of any type of lines (blank,
- code, comments, etc.)[default: False]
- --std.code.java.files=STD.CODE.JAVA.FILES
- Enumerates filename extensions to match Java files
- [default: *.java]
- --std.code.length.total, --sclent
- Enables collection of size metric (in number of
- symbols per region) [default: False]
- --std.code.lines.code, --sclc
- Enables collection of lines of code metric (per region
- detalization) - number of non-empty lines of code,
- excluding comments [default: False]
- --std.code.lines.preprocessor, --sclp
- Enables collection of lines of preprocessor code
- metric (per region detalization) - number of non-empty
- lines of preprocessor code [default: False]
- --std.code.lines.comments, --sclcom
- Enables collection of lines of comments metric (per
- region detalization) - number of non-empty lines of
- comments [default: False]
- --std.code.lines.total, --sclt
- Enables collection of total lines metric (per region
- detalization) - number of any type of lines (blank,
- code, comments, etc.)[default: False]
- --std.code.magic.numbers, --scmn
- Enables collection of magic numbers metric [default:
- False]
- --std.code.magic.numbers.simplier, --scmns
- Is set, 0, -1 and 1 numbers are not counted in
- 'std.code.magic.numbers' metric [default: False]
- --std.code.member.fields, --scmf
- Enables collection of number of data members / fields
- per classes, structs and interfaces [default: False]
- --std.code.member.globals, --scmg
- Enables collection of number of global variables /
- fields per global regions and namespaces [default:
- False]
- --std.code.member.classes, --scmc
- Enables collection of number of classes defined per
- any region [default: False]
- --std.code.member.structs, --scms
- Enables collection of number of structs defined per
- any region [default: False]
- --std.code.member.interfaces, --scmi
- Enables collection of number of interfaces defined per
- any region [default: False]
- --std.code.member.types, --scmt
- Enables collection of number of types (classes,
- structs or interface) defined per any region [default:
- False]
- --std.code.member.methods, --scmm
- Enables collection of number of methods (functions)
- defined per any region [default: False]
- --std.code.member.namespaces, --scmnss
- Enables collection of number of namespaces defined
- globally and enclosed (sub-namespaces) [default:
- False]
- --std.code.maintindex.simple, --scmis
- Enables collection of simple maintainability index
- metric. It uses std.code.line:code,
- std.code.complexity:cyclomatic metrics to rank level
- of maintainability. Lower value of this metric
- indicates better maintainability. [default: False]
- --std.code.todo.comments, --sctc
- Enables collection of number of todo/fixme/etc markers
- in comments [default: False]
- --std.code.todo.strings, --scts
- Enables collection of number of todo/fixme/etc markers
- in strings [default: False]
- --std.code.todo.tags=STD.CODE.TODO.TAGS, --sctt=STD.CODE.TODO.TAGS
- A list of typical todo markers to search, separated by
- comma [default: TODO,ToDo,FIXME,FixMe,TBD,HACK,XXX]
- --std.suppress, --ss If set (True), suppression markers are collected from
- comments in code. Suppressions are used by post-
- processing tools, like limit, to remove false-positive
- warnings. Suppressions should be in the first comment
- block of a region (function/class/interface). Format
- of suppressions: 'metrix++: suppress metric-name'. For
- example: 'metrix++: suppress
- std.code.complexity:cyclomatic'. [default: False]
- --std.general.proctime, --sgpt
- If the option is set (True), the tool measures
- processing time per file [default: False]
- --std.general.procerrors, --sgpe
- If the option is set (True), the tool counts number of
- processing/parsing errors per file [default: False]
- --std.general.size, --sgs
- If the option is set (True), the tool collects file
- size metric (in bytes) [default: False]
- --include-files=INCLUDE_FILES, --if=INCLUDE_FILES
- Defines the regular expression pattern to include
- files in processing [default: .*]
- --exclude-files=EXCLUDE_FILES, --ef=EXCLUDE_FILES
- Defines the regular expression pattern to exclude
- files from processing [default: ^[.]]
- --non-recursively, --nr
- If the option is set (True), sub-directories are not
- processed [default: False]
|