JetBrains / leveldb
Source Code Overview

Analysis scope, overview of main, test, generated, deployment, build, and other code.

Source Code Analysis Scope
Files includes and excluded from analyses
in
txt
clang-format
gitmodules
Overview of Analyzed Files
Basic stats on analyzed files
Intro
For analysis purposes we separate files in scope into several categories: main, test, generated, deployment and build, and other.

  • The main category contains all manually created source code files that are being used in the production.
  • Files in the main category are used as input for other analyses: logical decomposition, concerns, duplication, file size, unit size, and conditional complexity.
  • Test source code files are used only for testing of the product. These files are normally not deployed to production.
  • Build and deployment source code files are used to configure or support build and deployment process.
  • Generated source code files are automatically generated files that have not been manually changed after generation.
  • While a source code folder may contain a number of files, we are primarily interested in the source code files that are being written and maintained by developers.
  • Files containing binaries, documentation, or third-party libraries, for instance, are excluded from analysis. The exception are third-party libraries that have been changed by developers.

main14320 LOC (62%) 104 files
test7171 LOC (31%) 31 files
generated0 LOC (0%) 0 files
build and deployment0 LOC (0%) 0 files
other1316 LOC (5%) 8 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 104 files match defined criteria (14,320 LOC, 100.0% vs. main code):
    • 45 *.cc files (11,045 LOC)
    • 56 *.h files (2,831 LOC)
    • 1 *.html files (420 LOC)
    • 2 *.in files (24 LOC)
  • " *.cc" is biggest, containing 77.13% of LOC.
  • " *.in" is smallest, containing 0.17% of LOC.


*.cc11045 LOC (77%) 45 files
*.h2831 LOC (19%) 56 files
*.html420 LOC (2%) 1 file
*.in24 LOC (<1%) 2 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*_test[.].*".
  • 31 files match defined criteria (7,171 LOC, 50.1% vs. main code):
    • 30 *.cc files (6,842 LOC)
    • 1 *.c files (329 LOC)
  • " *.cc" is biggest, containing 95.41% of LOC.
  • " *.c" is smallest, containing 4.59% of LOC.


*.cc6842 LOC (95%) 30 files
*.c329 LOC (4%) 1 file
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
  • 8 files match defined criteria (1,316 LOC, 9.2% vs. main code):
    • 7 *.md files (880 LOC)
    • 1 *.txt files (436 LOC)
  • " *.md" is biggest, containing 66.87% of LOC.
  • " *.txt" is smallest, containing 33.13% of LOC.


*.md880 LOC (66%) 7 files
*.txt436 LOC (33%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2026-01-18 17:16