scitools.com

← Metric catalog

Executable 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.

Executable Code Lines

API IDCountLineCodeExe
TargetsArchitectures Classes Files Functions Modules Packages Project Subprograms
LanguagesAda Assembly C# C++ Fortran Java Pascal Python
CategoriesLines
CostLookup

Number of lines containing executable source code.

For example:

void SayHello::printHello() {
  switch (i) {
    case 0:
      cout << "Hello World" << endl;
    case 1:
      cout << "HELLO WORLD!" << endl;
    default: // a comment here
      for (int m = 0; m < j; m++);
      cout << "hello world" << endl;
  }
#ifdef A_VERY_NICE_VARIABLE

  cout << "Inactive Line" << endl; // Inactive
#endif

}

Every code line except the function signature is executable: the switch, both cases, the default, the for loop, and the three cout statements (lines 12-19), for CountLineCodeExe = 8.

See Declarative Code Lines for the complementary breakdown, and Code Lines for the total.


Targets By Language: