mozilla / code-review
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
diff
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.

main8206 LOC (40%) 96 files
test5697 LOC (28%) 41 files
generated0 LOC (0%) 0 files
build and deployment142 LOC (<1%) 4 files
other6243 LOC (30%) 46 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 96 files match defined criteria (8,206 LOC, 100.0% vs. main code):
    • 78 *.py files (6,113 LOC)
    • 12 *.vue files (1,765 LOC)
    • 4 *.js files (307 LOC)
    • 1 *.toml files (11 LOC)
    • 1 *.html files (10 LOC)
  • " *.py" is biggest, containing 74.49% of LOC.
  • " *.html" is smallest, containing 0.12% of LOC.


*.py6113 LOC (74%) 78 files
*.vue1765 LOC (21%) 12 files
*.js307 LOC (3%) 4 files
*.toml11 LOC (<1%) 1 file
*.html10 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_.*".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/[Mm]ocks/.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*_test[.].*".
  • 41 files match defined criteria (5,697 LOC, 69.4% vs. main code):
    • 39 *.py files (5,678 LOC)
    • 1 *.yaml files (13 LOC)
    • 1 *.js files (6 LOC)
  • " *.py" is biggest, containing 99.67% of LOC.
  • " *.js" is smallest, containing 0.11% of LOC.


*.py5678 LOC (99%) 39 files
*.yaml13 LOC (<1%) 1 file
*.js6 LOC (<1%) 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 ".*/[.]gitignore".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]sh".
  • 4 files match defined criteria (142 LOC, 1.7% vs. main code):
    • 1 *.js files (107 LOC)
    • 3 *.sh files (35 LOC)
  • " *.js" is biggest, containing 75.35% of LOC.
  • " *.sh" is smallest, containing 24.65% of LOC.


*.js107 LOC (75%) 1 file
*.sh35 LOC (24%) 3 files
Other Code
diff
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]diff".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
  • 46 files match defined criteria (6,243 LOC, 76.1% vs. main code):
    • 30 *.json files (5,968 LOC)
    • 6 *.md files (158 LOC)
    • 3 *.diff files (67 LOC)
    • 7 *.txt files (50 LOC)
  • " *.json" is biggest, containing 95.6% of LOC.
  • " *.txt" is smallest, containing 0.8% of LOC.


*.json5968 LOC (95%) 30 files
*.md158 LOC (2%) 6 files
*.diff67 LOC (1%) 3 files
*.txt50 LOC (<1%) 7 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-11 19:50