mozilla / metric-hub
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
ini
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.

main39368 LOC (91%) 474 files
test2868 LOC (6%) 41 files
generated0 LOC (0%) 0 files
build and deployment0 LOC (0%) 0 files
other958 LOC (2%) 16 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 ".*".
  • 474 files match defined criteria (39,368 LOC, 100.0% vs. main code):
    • 445 *.toml files (36,311 LOC)
    • 25 *.py files (2,826 LOC)
    • 2 *.in files (163 LOC)
    • 2 *.sql files (68 LOC)
  • " *.toml" is biggest, containing 92.23% of LOC.
  • " *.sql" is smallest, containing 0.17% of LOC.


*.toml36311 LOC (92%) 445 files
*.py2826 LOC (7%) 25 files
*.in163 LOC (<1%) 2 files
*.sql68 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[-].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/test[.].*".
  • 41 files match defined criteria (2,868 LOC, 7.3% vs. main code):
    • 15 *.py files (2,190 LOC)
    • 10 *.sql files (398 LOC)
    • 16 *.toml files (280 LOC)
  • " *.py" is biggest, containing 76.36% of LOC.
  • " *.toml" is smallest, containing 9.76% of LOC.


*.py2190 LOC (76%) 15 files
*.sql398 LOC (13%) 10 files
*.toml280 LOC (9%) 16 files
Other Code
txt
ini
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".
    • files with paths like ".*[.]ini".
  • 16 files match defined criteria (958 LOC, 2.4% vs. main code):
    • 1 *.txt files (829 LOC)
    • 13 *.md files (122 LOC)
    • 2 *.ini files (7 LOC)
  • " *.txt" is biggest, containing 86.53% of LOC.
  • " *.ini" is smallest, containing 0.73% of LOC.


*.txt829 LOC (86%) 1 file
*.md122 LOC (12%) 13 files
*.ini7 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-11 19:55