mozilla / glean.js
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
mdx
svelte
patch
mjs
eslintignore
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.

main6860 LOC (10%) 81 files
test7255 LOC (10%) 47 files
generated25468 LOC (38%) 3 files
build and deployment16 LOC (<1%) 1 file
other27023 LOC (40%) 39 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 ".*".
  • 81 files match defined criteria (6,860 LOC, 100.0% vs. main code):
    • 72 *.ts files (6,003 LOC)
    • 4 *.yaml files (552 LOC)
    • 4 *.js files (291 LOC)
    • 1 *.html files (14 LOC)
  • " *.ts" is biggest, containing 87.51% of LOC.
  • " *.html" is smallest, containing 0.2% of LOC.


*.ts6003 LOC (87%) 72 files
*.yaml552 LOC (8%) 4 files
*.js291 LOC (4%) 4 files
*.html14 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 ".*[.]spec[.]ts".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
  • 47 files match defined criteria (7,255 LOC, 105.8% vs. main code):
    • 42 *.ts files (6,765 LOC)
    • 2 *.yaml files (288 LOC)
    • 3 *.js files (202 LOC)
  • " *.ts" is biggest, containing 93.25% of LOC.
  • " *.js" is smallest, containing 2.78% of LOC.


*.ts6765 LOC (93%) 42 files
*.yaml288 LOC (3%) 2 files
*.js202 LOC (2%) 3 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".
  • 3 files match defined criteria (25,468 LOC, 371.3% vs. main code). All matches are in *.json files.


*.json25468 LOC (100%) 3 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 ".*[.]sh".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
  • 1 file matches defined criteria (16 LOC, 0.2% vs. main code). All matches are in *.js files.


*.js16 LOC (100%) 1 file
Other Code
svelte
mjs
patch
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[Dd]ocumentation/.*".
    • files with paths like ".*[.]mdx".
    • files with paths like ".*[.]patch".
    • files with paths like ".*/[Ss]amples/.*".
  • 39 files match defined criteria (27,023 LOC, 393.9% vs. main code):
    • 15 *.json files (25,788 LOC)
    • 8 *.md files (649 LOC)
    • 1 *.svelte files (263 LOC)
    • 1 *.mjs files (81 LOC)
    • 3 *.yaml files (79 LOC)
    • 3 *.css files (75 LOC)
    • 2 *.html files (35 LOC)
    • 2 *.js files (25 LOC)
    • 1 *.patch files (17 LOC)
    • 2 *.txt files (6 LOC)
    • 1 *.ts files (5 LOC)
  • " *.json" is biggest, containing 95.43% of LOC.
  • " *.ts" is smallest, containing 0.02% of LOC.


*.json25788 LOC (95%) 15 files
*.md649 LOC (2%) 8 files
*.svelte263 LOC (<1%) 1 file
*.mjs81 LOC (<1%) 1 file
*.yaml79 LOC (<1%) 3 files
*.css75 LOC (<1%) 3 files
*.html35 LOC (<1%) 2 files
*.js25 LOC (<1%) 2 files
*.patch17 LOC (<1%) 1 file
*.txt6 LOC (<1%) 2 files
*.ts5 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-11 19:52