mozilla / addons-frontend
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
po
txt
npmrc
eslintignore
snap
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.

main46932 LOC (16%) 418 files
test53451 LOC (18%) 217 files
generated0 LOC (0%) 0 files
build and deployment183 LOC (<1%) 3 files
other185393 LOC (64%) 159 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 ".*".
  • 418 files match defined criteria (46,932 LOC, 100.0% vs. main code):
    • 294 *.js files (37,864 LOC)
    • 121 *.scss files (6,508 LOC)
    • 3 *.html files (2,560 LOC)
  • " *.js" is biggest, containing 80.68% of LOC.
  • " *.html" is smallest, containing 5.45% of LOC.


*.js37864 LOC (80%) 294 files
*.scss6508 LOC (13%) 121 files
*.html2560 LOC (5%) 3 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
snap
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*[.]snap".
    • files with paths like ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*/testing[.].*".
  • 217 files match defined criteria (53,451 LOC, 113.9% vs. main code):
    • 216 *.js files (53,443 LOC)
    • 1 *.snap files (8 LOC)
  • " *.js" is biggest, containing 99.99% of LOC.
  • " *.snap" is smallest, containing 0.01% of LOC.


*.js53443 LOC (99%) 216 files
*.snap8 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 ".*([.]|/)webpack([.]|/).*".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[.]json".
  • 3 files match defined criteria (183 LOC, 0.4% vs. main code). All matches are in *.js files.


*.js183 LOC (100%) 3 files
Other Code
po
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]po".
    • files with paths like ".*[.]npmrc".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[.]prettierignore".
  • 159 files match defined criteria (185,393 LOC, 395.0% vs. main code):
    • 69 *.po files (184,282 LOC)
    • 6 *.json files (486 LOC)
    • 1 *.txt files (293 LOC)
    • 3 *.md files (252 LOC)
    • 80 *.svg files (80 LOC)
  • " *.po" is biggest, containing 99.4% of LOC.
  • " *.svg" is smallest, containing 0.04% of LOC.


*.po184282 LOC (99%) 69 files
*.json486 LOC (<1%) 6 files
*.txt293 LOC (<1%) 1 file
*.md252 LOC (<1%) 3 files
*.svg80 LOC (<1%) 80 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-11 19:43