mozilla / fxa-pairing-channel
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
npmignore
txt
eslintignore
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.

main1799 LOC (35%) 12 files
test2952 LOC (57%) 10 files
generated0 LOC (0%) 0 files
build and deployment114 LOC (2%) 1 file
other265 LOC (5%) 6 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 ".*".
  • 12 files match defined criteria (1,799 LOC, 100.0% vs. main code):
    • 11 *.js files (1,794 LOC)
    • 1 *.inc files (5 LOC)
  • " *.js" is biggest, containing 99.72% of LOC.
  • " *.inc" is smallest, containing 0.28% of LOC.


*.js1794 LOC (99%) 11 files
*.inc5 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]est/.*".
    • files with paths like ".*/karma[.]conf[.]js".
    • files with paths like ".*/test_.*".
  • 10 files match defined criteria (2,952 LOC, 164.1% vs. main code):
    • 9 *.js files (2,712 LOC)
    • 1 *.py files (240 LOC)
  • " *.js" is biggest, containing 91.87% of LOC.
  • " *.py" is smallest, containing 8.13% of LOC.


*.js2712 LOC (91%) 9 files
*.py240 LOC (8%) 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
    • files with paths like ".*/package[.]json".
  • 1 file matches defined criteria (114 LOC, 6.3% vs. main code). All matches are in *.js files.


*.js114 LOC (100%) 1 file
Other Code
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[.]npmignore".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[Dd]emos?/.*".
  • 6 files match defined criteria (265 LOC, 14.7% vs. main code):
    • 2 *.md files (117 LOC)
    • 2 *.html files (88 LOC)
    • 1 *.json files (47 LOC)
    • 1 *.css files (13 LOC)
  • " *.md" is biggest, containing 44.15% of LOC.
  • " *.css" is smallest, containing 4.91% of LOC.


*.md117 LOC (44%) 2 files
*.html88 LOC (33%) 2 files
*.json47 LOC (17%) 1 file
*.css13 LOC (4%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-11 19:49