How can I generate LoC (line of code) metrics for my Delphi (pascal) project? Is there a built-in way to do this?
I don't use them. LOC metrics have one problem: they encourage writing code like this.
Recent Versions of Delphi, from Pro and Up, include some basic metrics, including LOC metrics, and other similarly useless metrics, as built in feature. Enterprise and Architect include a larger set of metrics, and audits.
Notably the results are displayed in an inscrutable mess of a grid, with no help and no hints.
In fact, there's nothing in the help to help you either. However before you run the metrics, there is some description of what the various cryptic things mean, here is a list of the free built in ones:
CIW - Class Interface Width
LOC - Lines of Code
NAM - Number of Accessor Methods
NOA - Number of Attributes
NOC - Number of Classes
NOIS - Number of Import Statements
NOM - Number of Members
NOP - Number of Parameters
NOPA - Number of Public Attributes
PIS - Package Interface Size
PS - Package Size
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With