mozilla / cubeb
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.

main22479 LOC (82%) 60 files
test4210 LOC (15%) 19 files
generated0 LOC (0%) 0 files
build and deployment9 LOC (<1%) 1 file
other436 LOC (1%) 4 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 ".*".
  • 60 files match defined criteria (22,479 LOC, 100.0% vs. main code):
    • 13 *.cpp files (11,674 LOC)
    • 12 *.c files (8,246 LOC)
    • 33 *.h files (2,547 LOC)
    • 1 *.cmake files (9 LOC)
    • 1 *.in files (3 LOC)
  • " *.cpp" is biggest, containing 51.93% of LOC.
  • " *.in" is smallest, containing 0.01% of LOC.


*.cpp11674 LOC (51%) 13 files
*.c8246 LOC (36%) 12 files
*.h2547 LOC (11%) 33 files
*.cmake9 LOC (<1%) 1 file
*.in3 LOC (<1%) 1 file
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 ".*/[Tt]est/.*".
    • files with paths like ".*/test_.*".
  • 19 files match defined criteria (4,210 LOC, 18.7% vs. main code):
    • 18 *.cpp files (4,070 LOC)
    • 1 *.h files (140 LOC)
  • " *.cpp" is biggest, containing 96.67% of LOC.
  • " *.h" is smallest, containing 3.33% of LOC.


*.cpp4070 LOC (96%) 18 files
*.h140 LOC (3%) 1 file
Build and Deployment Code
Source code used to configure or support build and deployment process.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
  • 1 file matches defined criteria (9 LOC, 0.0% vs. main code). All matches are in *.sh files.


*.sh9 LOC (100%) 1 file
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/INSTALL[.][a-z0-9]+".
  • 4 files match defined criteria (436 LOC, 1.9% vs. main code):
    • 1 *.txt files (391 LOC)
    • 3 *.md files (45 LOC)
  • " *.txt" is biggest, containing 89.68% of LOC.
  • " *.md" is smallest, containing 10.32% of LOC.


*.txt391 LOC (89%) 1 file
*.md45 LOC (10%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-11 19:39