Next: , Previous: Disable Metrics For Local Units, Up: Switches for gnatmetric


14.1.3 Line Metrics Control

For any (legal) source file, and for each of its eligible local program units, gnatmetric computes the following metrics:

If gnatmetric is invoked on more than one source file, it sums the values of the line metrics for all the files being processed and then generates the cumulative results.

By default, all the line metrics are computed and reported. You can use the following switches to select the specific line metrics to be computed and reported (if any of these parameters is set, only explicitly specified line metrics are computed).

-la
The number of all lines


-lcode
The number of code lines


-lcomm
The number of comment lines


-leol
The number of code lines containing end-of-line comments


-lb
The number of blank lines