mozilla / code-coverage
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
cfg
babelrc
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.

main5345 LOC (17%) 70 files
test3288 LOC (10%) 23 files
generated7209 LOC (22%) 1 file
build and deployment137 LOC (<1%) 7 files
other15411 LOC (49%) 69 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 ".*".
  • 70 files match defined criteria (5,345 LOC, 100.0% vs. main code):
    • 50 *.py files (3,570 LOC)
    • 12 *.js files (1,163 LOC)
    • 1 *.scss files (381 LOC)
    • 2 *.html files (184 LOC)
    • 3 *.css files (41 LOC)
    • 2 *.in files (6 LOC)
  • " *.py" is biggest, containing 66.79% of LOC.
  • " *.in" is smallest, containing 0.11% of LOC.


*.py3570 LOC (66%) 50 files
*.js1163 LOC (21%) 12 files
*.scss381 LOC (7%) 1 file
*.html184 LOC (3%) 2 files
*.css41 LOC (<1%) 3 files
*.in6 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 ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*[-]tests[-].*".
    • files with paths like ".*/test[.].*".
  • 23 files match defined criteria (3,288 LOC, 61.5% vs. main code). All matches are in *.py files.


*.py3288 LOC (100%) 23 files
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/package[-]lock[.]json".
  • 1 file matches defined criteria (7,209 LOC, 134.9% vs. main code). All matches are in *.json files.


*.json7209 LOC (100%) 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/package[-]lock[.]json".
  • 7 files match defined criteria (137 LOC, 2.6% vs. main code):
    • 4 *.js files (113 LOC)
    • 3 *.sh files (24 LOC)
  • " *.js" is biggest, containing 82.48% of LOC.
  • " *.sh" is smallest, containing 17.52% of LOC.


*.js113 LOC (82%) 4 files
*.sh24 LOC (17%) 3 files
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]dockerignore".
  • 69 files match defined criteria (15,411 LOC, 288.3% vs. main code):
    • 52 *.json files (15,227 LOC)
    • 8 *.md files (134 LOC)
    • 9 *.txt files (50 LOC)
  • " *.json" is biggest, containing 98.81% of LOC.
  • " *.txt" is smallest, containing 0.32% of LOC.


*.json15227 LOC (98%) 52 files
*.md134 LOC (<1%) 8 files
*.txt50 LOC (<1%) 9 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-11 19:50