mozilla / Speedometer
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
mjs
txt
svelte
npmrc
eslintignore
prettierignore
stylelintignore
editorconfig
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.

main74783 LOC (39%) 448 files
test1747 LOC (<1%) 17 files
generated55203 LOC (29%) 24 files
build and deployment345 LOC (<1%) 12 files
other57793 LOC (30%) 137 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
mjs
svelte
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 448 files match defined criteria (74,783 LOC, 100.0% vs. main code):
    • 218 *.js files (58,877 LOC)
    • 50 *.css files (4,258 LOC)
    • 16 *.mjs files (3,923 LOC)
    • 33 *.html files (3,147 LOC)
    • 60 *.jsx files (1,893 LOC)
    • 39 *.vue files (1,208 LOC)
    • 26 *.ts files (1,101 LOC)
    • 2 *.py files (233 LOC)
    • 4 *.svelte files (143 LOC)
  • " *.js" is biggest, containing 78.73% of LOC.
  • " *.svelte" is smallest, containing 0.19% of LOC.


*.js58877 LOC (78%) 218 files
*.css4258 LOC (5%) 50 files
*.mjs3923 LOC (5%) 16 files
*.html3147 LOC (4%) 33 files
*.jsx1893 LOC (2%) 60 files
*.vue1208 LOC (1%) 39 files
*.ts1101 LOC (1%) 26 files
*.py233 LOC (<1%) 2 files
*.svelte143 LOC (<1%) 4 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
mjs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test[-]runner[.].*".
    • files with paths like ".*/karma[.]conf[.]js".
    • files with paths like ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*[-]test[-].*".
  • 17 files match defined criteria (1,747 LOC, 2.3% vs. main code):
    • 7 *.js files (884 LOC)
    • 4 *.mjs files (432 LOC)
    • 5 *.jsx files (370 LOC)
    • 1 *.html files (61 LOC)
  • " *.js" is biggest, containing 50.6% of LOC.
  • " *.html" is smallest, containing 3.49% of LOC.


*.js884 LOC (50%) 7 files
*.mjs432 LOC (24%) 4 files
*.jsx370 LOC (21%) 5 files
*.html61 LOC (3%) 1 file
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".
  • 24 files match defined criteria (55,203 LOC, 73.8% vs. main code). All matches are in *.json files.


*.json55203 LOC (100%) 24 files
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 ".*/package[.]json".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
  • 12 files match defined criteria (345 LOC, 0.5% vs. main code). All matches are in *.js files.


*.js345 LOC (100%) 12 files
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]npmrc".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[.]stylelintignore".
    • files with paths like ".*/[.]prettierignore".
  • 137 files match defined criteria (57,793 LOC, 77.3% vs. main code):
    • 71 *.json files (56,498 LOC)
    • 41 *.md files (1,001 LOC)
    • 24 *.svg files (265 LOC)
    • 1 *.txt files (29 LOC)
  • " *.json" is biggest, containing 97.76% of LOC.
  • " *.txt" is smallest, containing 0.05% of LOC.


*.json56498 LOC (97%) 71 files
*.md1001 LOC (1%) 41 files
*.svg265 LOC (<1%) 24 files
*.txt29 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-11 19:57