Inactive 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.
Inactive Lines
API ID: CountLineInactiveLanguages: C#, C++, Pascal
Targets: Architectures, Classes, Files, Functions, Modules, Project, Subprograms
Number of inactive lines.
This is the number of lines that are inactive from the view of the preprocessor. In other words, they are on the FALSE side of a #if or #ifdef preprocessor directive.
- C#: Project, File, Class, Method
- C++: Project, File, Class, Struct, Union, Function
- Pascal: Project, File, Class, Interface, Compunit, Function, Procedure
- This metric can be disabled from "Project Configuration/Metrics/Lines and Statements" with the "Show line count metrics" option.
- For projects and architectures, this metric is enabled from "Project Configuration/Metrics/Projects and Architectures" with the "Show default summary metrics" option.