scitools.com

← Metric catalog

Code Lines is one of the source-code metrics Understand computes across 17+ languages — browse them in the GUI, export and track them, or script them with the Python API.

Code Lines

API ID: CountLineCode
Also Known As: Lines of Code (LOC), Source Lines of Code (SLOC)
Languages: Ada, Assembly, Basic, C#, C++, Fortran, Java, Jovial, Pascal, Python, Rust, VHDL, Web
Targets: Architectures, Classes, Files, Functions, Modules, Packages, Project, Subprograms

Number of lines containing source code.

Note that a line can contain source and a comment and thus count towards multiple metrics. For classes this is the sum of CountLineCode for the member functions of the class.

Also known as Lines of Code (LOC); Source Lines of Code (SLOC).


Targets By Language: Configuration: