mozilla / perfcompare
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
snap
txt
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.

main10737 LOC (28%) 117 files
test26546 LOC (70%) 45 files
generated0 LOC (0%) 0 files
build and deployment83 LOC (<1%) 4 files
other417 LOC (1%) 20 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 ".*".
  • 117 files match defined criteria (10,737 LOC, 100.0% vs. main code):
    • 67 *.tsx files (6,728 LOC)
    • 47 *.ts files (3,739 LOC)
    • 2 *.js files (245 LOC)
    • 1 *.html files (25 LOC)
  • " *.tsx" is biggest, containing 62.66% of LOC.
  • " *.html" is smallest, containing 0.23% of LOC.


*.tsx6728 LOC (62%) 67 files
*.ts3739 LOC (34%) 47 files
*.js245 LOC (2%) 2 files
*.html25 LOC (<1%) 1 file
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 ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*__tests__.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*[.]snap".
  • 45 files match defined criteria (26,546 LOC, 247.2% vs. main code):
    • 12 *.snap files (17,210 LOC)
    • 9 *.ts files (4,824 LOC)
    • 23 *.tsx files (4,504 LOC)
    • 1 *.js files (8 LOC)
  • " *.snap" is biggest, containing 64.83% of LOC.
  • " *.js" is smallest, containing 0.03% of LOC.


*.snap17210 LOC (64%) 12 files
*.ts4824 LOC (18%) 9 files
*.tsx4504 LOC (16%) 23 files
*.js8 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 ".*[.]sh".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[.]json".
  • 4 files match defined criteria (83 LOC, 0.8% vs. main code). All matches are in *.js files.


*.js83 LOC (100%) 4 files
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[.]prettierignore".
  • 20 files match defined criteria (417 LOC, 3.9% vs. main code):
    • 3 *.json files (178 LOC)
    • 2 *.md files (131 LOC)
    • 14 *.svg files (105 LOC)
    • 1 *.txt files (3 LOC)
  • " *.json" is biggest, containing 42.69% of LOC.
  • " *.txt" is smallest, containing 0.72% of LOC.


*.json178 LOC (42%) 3 files
*.md131 LOC (31%) 2 files
*.svg105 LOC (25%) 14 files
*.txt3 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-11 19:55