mozilla / protocol
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
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.

main10228 LOC (73%) 235 files
test1062 LOC (7%) 8 files
generated0 LOC (0%) 0 files
build and deployment456 LOC (3%) 5 files
other2093 LOC (15%) 84 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 ".*".
  • 235 files match defined criteria (10,228 LOC, 100.0% vs. main code):
    • 126 *.scss files (7,008 LOC)
    • 90 *.html files (1,786 LOC)
    • 18 *.js files (1,272 LOC)
    • 1 *.toml files (162 LOC)
  • " *.scss" is biggest, containing 68.52% of LOC.
  • " *.toml" is smallest, containing 1.58% of LOC.


*.scss7008 LOC (68%) 126 files
*.html1786 LOC (17%) 90 files
*.js1272 LOC (12%) 18 files
*.toml162 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 ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
  • 8 files match defined criteria (1,062 LOC, 10.4% vs. main code). All matches are in *.js files.


*.js1062 LOC (100%) 8 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 ".*([.]|/)webpack([.]|/).*".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[.]json".
  • 5 files match defined criteria (456 LOC, 4.5% vs. main code). All matches are in *.js files.


*.js456 LOC (100%) 5 files
Other Code
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*[.]md".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]stylelintignore".
    • files with paths like ".*[.]svg".
  • 84 files match defined criteria (2,093 LOC, 20.5% vs. main code):
    • 71 *.md files (1,923 LOC)
    • 4 *.json files (113 LOC)
    • 9 *.svg files (57 LOC)
  • " *.md" is biggest, containing 91.88% of LOC.
  • " *.svg" is smallest, containing 2.72% of LOC.


*.md1923 LOC (91%) 71 files
*.json113 LOC (5%) 4 files
*.svg57 LOC (2%) 9 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-11 19:47