mozilla / glam
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
svelte
tpl
txt
editorconfig
ini
in
cfg
lua
eslintignore
prettierignore
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.

main16494 LOC (45%) 199 files
test978 LOC (2%) 12 files
generated0 LOC (0%) 0 files
build and deployment31 LOC (<1%) 1 file
other18542 LOC (51%) 18 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
svelte
tpl
lua
in
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 199 files match defined criteria (16,494 LOC, 100.0% vs. main code):
    • 99 *.svelte files (9,940 LOC)
    • 48 *.py files (2,924 LOC)
    • 34 *.js files (1,970 LOC)
    • 6 *.css files (1,080 LOC)
    • 8 *.tpl files (446 LOC)
    • 1 *.lua files (77 LOC)
    • 1 *.html files (26 LOC)
    • 1 *.in files (19 LOC)
    • 1 *.cfg files (12 LOC)
  • " *.svelte" is biggest, containing 60.26% of LOC.
  • " *.cfg" is smallest, containing 0.07% of LOC.


*.svelte9940 LOC (60%) 99 files
*.py2924 LOC (17%) 48 files
*.js1970 LOC (11%) 34 files
*.css1080 LOC (6%) 6 files
*.tpl446 LOC (2%) 8 files
*.lua77 LOC (<1%) 1 file
*.html26 LOC (<1%) 1 file
*.in19 LOC (<1%) 1 file
*.cfg12 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 ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*/jest[.][a-zA-Z0-9\.]+".
  • 12 files match defined criteria (978 LOC, 5.9% vs. main code):
    • 3 *.py files (602 LOC)
    • 8 *.js files (369 LOC)
    • 1 *.r files (7 LOC)
  • " *.py" is biggest, containing 61.55% of LOC.
  • " *.r" is smallest, containing 0.72% of LOC.


*.py602 LOC (61%) 3 files
*.js369 LOC (37%) 8 files
*.r7 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 ".*/package[.]json".
    • files with paths like ".*[.]sh".
  • 1 file matches defined criteria (31 LOC, 0.2% vs. main code). All matches are in *.sh files.


*.sh31 LOC (100%) 1 file
Other Code
txt
ini
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*[.]ini".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[.]prettierignore".
  • 18 files match defined criteria (18,542 LOC, 112.4% vs. main code):
    • 9 *.json files (18,040 LOC)
    • 4 *.md files (299 LOC)
    • 1 *.txt files (167 LOC)
    • 2 *.svg files (22 LOC)
    • 1 *.js files (8 LOC)
    • 1 *.ini files (6 LOC)
  • " *.json" is biggest, containing 97.29% of LOC.
  • " *.ini" is smallest, containing 0.03% of LOC.


*.json18040 LOC (97%) 9 files
*.md299 LOC (1%) 4 files
*.txt167 LOC (<1%) 1 file
*.svg22 LOC (<1%) 2 files
*.js8 LOC (<1%) 1 file
*.ini6 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-11 19:51