Merge: introduce nit_env.sh to setup the shell environement
[nit.git] / share / man / nitmetrics.md
1 # NAME
2
3 nitmetrics -- computes various metrics on Nit programs.
4
5 # SYNOPSIS
6
7 nitmetrics [*options*]... FILE...
8
9 # OPTIONS
10
11 ## METRICS
12
13 ### `--all`
14 Compute all metrics.
15
16 ### `--mmodules`
17 Compute metrics about mmodules.
18
19 ### `--mclasses`
20 Compute metrics about mclasses.
21
22 ### `--mendel`
23 Compute mendel metrics.
24
25 ### `--inheritance`
26 Compute metrics about inheritance usage.
27
28 ### `--refinement`
29 Compute metrics about refinement usage.
30
31 ### `--self`
32 Compute metrics about the usage of explicit and implicit self.
33
34 ### `--ast`
35 Compute metrics about the usage of nodes and identifiers in the AST.
36
37 ### `--nullables`
38 Compute metrics on nullables send.
39
40 ### `--static-types`
41 Compute explicit static types metrics.
42
43 ### `--tables`
44 Compute tables metrics.
45
46 ### `--rta`
47 Compute RTA metrics.
48
49 ### `--generate_hyperdoc`
50 Generate Hyperdoc.
51
52 ### `--poset`
53 Complete metrics on posets.
54
55 ### `--detect-variance-constraints`
56 Detect the definition-site variance constraints on formal parameters.
57
58 Infers the possible variance annotations of formal types in Nit programs by identifying the existing constraints on the usage of those formal type.
59
60 ### `--detect-covariance`
61 Detect the static covariance usages.
62
63 ## OUTPUT
64
65 ### `--csv`
66 Also export metrics in CSV format.
67
68 ### `-d`, `--dir`
69 Directory where some statistics files are generated.
70
71 ### `--no-colors`
72 Disable colors in console outputs.
73
74 # SEE ALSO
75
76 The Nit language documentation and the source code of its tools and libraries may be downloaded from <http://nitlanguage.org>