mozilla / fx-private-relay
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
pyi
gitmodules
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.

main44635 LOC (61%) 434 files
test20340 LOC (28%) 102 files
generated0 LOC (0%) 0 files
build and deployment0 LOC (0%) 0 files
other7475 LOC (10%) 68 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
pyi
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 434 files match defined criteria (44,635 LOC, 100.0% vs. main code):
    • 92 *.tsx files (15,641 LOC)
    • 196 *.py files (14,670 LOC)
    • 82 *.scss files (9,703 LOC)
    • 44 *.ts files (2,968 LOC)
    • 10 *.html files (1,253 LOC)
    • 2 *.toml files (142 LOC)
    • 2 *.ftl files (136 LOC)
    • 1 *.yaml files (79 LOC)
    • 1 *.pyi files (23 LOC)
    • 4 *.xml files (20 LOC)
  • " *.tsx" is biggest, containing 35.04% of LOC.
  • " *.xml" is smallest, containing 0.04% of LOC.


*.tsx15641 LOC (35%) 92 files
*.py14670 LOC (32%) 196 files
*.scss9703 LOC (21%) 82 files
*.ts2968 LOC (6%) 44 files
*.html1253 LOC (2%) 10 files
*.toml142 LOC (<1%) 2 files
*.ftl136 LOC (<1%) 2 files
*.yaml79 LOC (<1%) 1 file
*.pyi23 LOC (<1%) 1 file
*.xml20 LOC (<1%) 4 files
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 ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*/__mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*/[Ss]pecs/.*".
    • files with paths like ".*[.]spec[.]ts".
  • 102 files match defined criteria (20,340 LOC, 45.6% vs. main code):
    • 45 *.py files (14,697 LOC)
    • 18 *.tsx files (3,006 LOC)
    • 38 *.ts files (2,612 LOC)
    • 1 *.js files (25 LOC)
  • " *.py" is biggest, containing 72.26% of LOC.
  • " *.js" is smallest, containing 0.12% of LOC.


*.py14697 LOC (72%) 45 files
*.tsx3006 LOC (14%) 18 files
*.ts2612 LOC (12%) 38 files
*.js25 LOC (<1%) 1 file
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[.]dockerignore".
  • 68 files match defined criteria (7,475 LOC, 16.7% vs. main code):
    • 47 *.svg files (4,836 LOC)
    • 10 *.md files (2,308 LOC)
    • 4 *.json files (218 LOC)
    • 7 *.txt files (113 LOC)
  • " *.svg" is biggest, containing 64.7% of LOC.
  • " *.txt" is smallest, containing 1.51% of LOC.


*.svg4836 LOC (64%) 47 files
*.md2308 LOC (30%) 10 files
*.json218 LOC (2%) 4 files
*.txt113 LOC (1%) 7 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-11 19:50