Declarative 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.
Declarative Code Lines
API ID: CountLineCodeDeclLanguages: Ada, Assembly, C#, C++, Fortran, Java, Pascal, Python
Targets: Architectures, Classes, Files, Functions, Modules, Packages, Project, Subprograms
Number of lines containing declarative source code. Note that a line can be declarative and executable - "int i =0;" for instance.
- Ada: Project, File, Type, Entry, Function, Package, Procedure, Protected, Task
- C#: Project, File, Class, Method
- C++: Project, File, Class, Struct, Union, Function
- Fortran: Project, File, Module, Block Data, Function, Program, Subroutine
- Java: Project, File, Class, Interface, Method
- Pascal: Project, File, Class, Interface, Compunit, Function, Procedure
- Python: Project, File, Class, Function
- This metric can be disabled from "Project Configuration/Metrics/Lines and Statements" with the "Show line count metrics" option.