mozilla / kitsune
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
njk
svelte
cfg
mo
ini
po
htaccess
wiki
plist
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.

main83456 LOC (63%) 1,057 files
test39701 LOC (30%) 233 files
generated1700 LOC (1%) 1 file
build and deployment662 LOC (<1%) 15 files
other5924 LOC (4%) 134 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
njk
svelte
cfg
wiki
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1057 files match defined criteria (83,456 LOC, 100.0% vs. main code):
    • 600 *.py files (42,287 LOC)
    • 90 *.js files (15,033 LOC)
    • 229 *.html files (13,077 LOC)
    • 79 *.scss files (9,767 LOC)
    • 43 *.njk files (1,484 LOC)
    • 8 *.svelte files (805 LOC)
    • 2 *.css files (801 LOC)
    • 1 *.toml files (128 LOC)
    • 3 *.cfg files (33 LOC)
    • 1 *.erb files (31 LOC)
    • 1 *.wiki files (10 LOC)
  • " *.py" is biggest, containing 50.67% of LOC.
  • " *.wiki" is smallest, containing 0.01% of LOC.


*.py42287 LOC (50%) 600 files
*.js15033 LOC (18%) 90 files
*.html13077 LOC (15%) 229 files
*.scss9767 LOC (11%) 79 files
*.njk1484 LOC (1%) 43 files
*.svelte805 LOC (<1%) 8 files
*.css801 LOC (<1%) 2 files
*.toml128 LOC (<1%) 1 file
*.cfg33 LOC (<1%) 3 files
*.erb31 LOC (<1%) 1 file
*.wiki10 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
mo
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 ".*_tests[.].*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
  • 233 files match defined criteria (39,701 LOC, 47.6% vs. main code):
    • 214 *.py files (36,768 LOC)
    • 16 *.js files (2,892 LOC)
    • 1 *.sh files (21 LOC)
    • 2 *.mo files (20 LOC)
  • " *.py" is biggest, containing 92.61% of LOC.
  • " *.mo" is smallest, containing 0.05% of LOC.


*.py36768 LOC (92%) 214 files
*.js2892 LOC (7%) 16 files
*.sh21 LOC (<1%) 1 file
*.mo20 LOC (<1%) 2 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 (1,700 LOC, 2.0% vs. main code). All matches are in *.json files.


*.json1700 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".
  • 15 files match defined criteria (662 LOC, 0.8% vs. main code):
    • 12 *.js files (603 LOC)
    • 3 *.sh files (59 LOC)
  • " *.js" is biggest, containing 91.09% of LOC.
  • " *.sh" is smallest, containing 8.91% of LOC.


*.js603 LOC (91%) 12 files
*.sh59 LOC (8%) 3 files
Other Code
txt
ini
po
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]po".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]ini".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*/[.]htaccess".
    • files with paths like ".*[.]plist".
  • 134 files match defined criteria (5,924 LOC, 7.1% vs. main code):
    • 15 *.json files (2,821 LOC)
    • 81 *.txt files (2,069 LOC)
    • 27 *.svg files (618 LOC)
    • 2 *.ini files (221 LOC)
    • 3 *.rst files (107 LOC)
    • 2 *.po files (48 LOC)
    • 3 *.md files (39 LOC)
    • 1 *.scss files (1 LOC)
  • " *.json" is biggest, containing 47.62% of LOC.
  • " *.scss" is smallest, containing 0.02% of LOC.


*.json2821 LOC (47%) 15 files
*.txt2069 LOC (34%) 81 files
*.svg618 LOC (10%) 27 files
*.ini221 LOC (3%) 2 files
*.rst107 LOC (1%) 3 files
*.po48 LOC (<1%) 2 files
*.md39 LOC (<1%) 3 files
*.scss1 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-11 19:39