Number of Executable Lines
Number of executable lines in function body
Description
This metric measures the number of executable lines in a function body. When calculating the value of this metric, Polyspace® excludes declarations, comments, blank lines, braces or preprocessing directives. In cases where the same logical statement spans multiple lines of code, Polyspace counts each line that contains executable code as one executable line. For example, this code contains two executable lines:
totalPower = voltage * current +
offset - losses; // counted as 2 executable linesIf the function body contains a #include directive,
the included file source code is also calculated as part of this metric.
This metric is not calculated for C++ function templates and lambdas. For these entities, the
value is reported as Not computed.
Examples
Metric Information
| Group: Function |
Acronym: FXLN |
| HIS Metric: No |