mozilla / mozilla-datahub-ingestion
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
txt
in
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.

main738 LOC (39%) 16 files
test239 LOC (12%) 6 files
generated0 LOC (0%) 0 files
build and deployment0 LOC (0%) 0 files
other876 LOC (47%) 5 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 ".*".
  • 16 files match defined criteria (738 LOC, 100.0% vs. main code):
    • 10 *.py files (677 LOC)
    • 5 *.yaml files (53 LOC)
    • 1 *.in files (8 LOC)
  • " *.py" is biggest, containing 91.73% of LOC.
  • " *.in" is smallest, containing 1.08% of LOC.


*.py677 LOC (91%) 10 files
*.yaml53 LOC (7%) 5 files
*.in8 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]ests/.*".
    • files with paths like ".*/test_.*".
  • 6 files match defined criteria (239 LOC, 32.4% vs. main code):
    • 4 *.py files (232 LOC)
    • 1 *.yaml files (6 LOC)
    • 1 *.sql files (1 LOC)
  • " *.py" is biggest, containing 97.07% of LOC.
  • " *.sql" is smallest, containing 0.42% of LOC.


*.py232 LOC (97%) 4 files
*.yaml6 LOC (2%) 1 file
*.sql1 LOC (<1%) 1 file
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
  • 5 files match defined criteria (876 LOC, 118.7% vs. main code):
    • 1 *.txt files (780 LOC)
    • 3 *.json files (56 LOC)
    • 1 *.md files (40 LOC)
  • " *.txt" is biggest, containing 89.04% of LOC.
  • " *.md" is smallest, containing 4.57% of LOC.


*.txt780 LOC (89%) 1 file
*.json56 LOC (6%) 3 files
*.md40 LOC (4%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-11 19:55