Is the source code of the LocMetrics tool available?
No.
Is there a way to exercise LocMetrics from a command-line interface?
Yes.
- -i input source code directory (required)
- -e file type extensions (optional)
- -o output directory (optional)
How is the SLOC-L metric (logical lines) determined?
The SLOC-L metric follows the definition from the USC CodeCount tool. Specifically, the SLOC-L is computed by summing the terminal semicolons and terminal curly braces.
Please verify that the C&SLOC is a line that contains code and comment? If this is the case, is this calculation included in the LOC or in the CLOC?
x = y; // comment
- This line is counted as a line of code, SLOC-P.
- This line is counted as a line of code with a comment, C&SLOC.
- This line is not counted as a comment, CLOC.