The following metrics are generated for each directory that contains at least one of the project's source files. The metrics reflect just the source files located directly in the directory, and not any source files located in subdirectories.
C Files | Number of C files in the directory. |
C++ Files | Number of C++ files in the directory. |
Comment Ratio | Ratio of the lines of comments to the lines of source code in the directory. |
Declarations in Directory | Number of top-level declarations in the directory, including types, variables, functions and macro defines. |
| Not applicable for Java. |
Directory Size (bytes) | Total size of the files in the directory, in bytes. |
Functions in Directory | Number of functions defined in the directory. |
Header Files | Number of C and C++ header files in the directory. |
Java Class Files | Number of Java Class files in the directory. |
Java Files | Number of Java files in the directory. |
Lines in Directory | Number of lines in the directory. |
Lines of Source Code | Number of lines in the directory that have source code, i.e. all lines except empty lines, lines that have just comments, and lines omitted because of preprocessor conditions. |
Lines of Comments | Number of lines of comments in the directory. |
Number of Statements | Number of statements in the directory. An individual statement can extend over multiple lines. |
Total Files | Number of C, C++ and Java files in the directory. |
Variables in Directory | Number of variables and parameters defined in the directory. |
| For local variables and parameters to be counted, data must be collected with the -locals option enabled. Not applicable for Java. |
McCabe Average Complexity | Average cyclomatic complexity for all functions defined in the directory. |
McCabe Maximum Complexity | Maximum cyclomatic complexity for any function defined in the directory. |
McCabe Total Complexity | Total cyclomatic complexity for all functions defined in the directory. |
Maintainability Index | Measure of the maintainability of the directory (Welker MI). |
Halstead Intelligent Content | Language-independent measure of the amount of content (complexity) of the directory (Halstead I). |
Halstead Mental Effort | Measure of the number of elemental mental discriminations necessary to create, or understand, the directory (Halstead E). |
Halstead Program Volume | Measure of the information content of the directory (Halstead V). |
Halstead Program Difficulty | Measure of how compactly the directory implements its algorithms (Halstead D). This is the inverse of the Halstead Program Level (of abstraction). |