
340 ◾ Software Metrics
EXAMPLE 8.4
There is some general consensus that blank lines and comments should not be
counted. Conte etal. dene an LOC as any line of program text that is not a
comment or blank line, regardless of the number of statements or fragments of
statements on the line. This denition specically includes all lines containing
program headers, declarations, and executable and nonexecutable statements
(Conte etal. 1986). Grady and Caswell report that Hewlett-Packard denes
an LOC as a noncommented source statement: any statement in the program
except for comments and blank lines (Grady and Caswell 1987).
is denition of an ...