guardian / gateway
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
mjs
editorconfig
prettierignore
snap
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.

main33296 LOC (63%) 473 files
test12023 LOC (22%) 76 files
generated0 LOC (0%) 0 files
build and deployment4908 LOC (9%) 7 files
other2229 LOC (4%) 38 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
mjs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 473 files match defined criteria (33,296 LOC, 100.0% vs. main code):
    • 267 *.ts files (21,913 LOC)
    • 197 *.tsx files (10,130 LOC)
    • 2 *.yaml files (855 LOC)
    • 1 *.mjs files (149 LOC)
    • 4 *.js files (146 LOC)
    • 2 *.html files (103 LOC)
  • " *.ts" is biggest, containing 65.81% of LOC.
  • " *.html" is smallest, containing 0.31% of LOC.


*.ts21913 LOC (65%) 267 files
*.tsx10130 LOC (30%) 197 files
*.yaml855 LOC (2%) 2 files
*.mjs149 LOC (<1%) 1 file
*.js146 LOC (<1%) 4 files
*.html103 LOC (<1%) 2 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 ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*__tests__.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/testing[.].*".
    • files with paths like ".*/__mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*[.]snap".
  • 76 files match defined criteria (12,023 LOC, 36.1% vs. main code):
    • 67 *.ts files (9,352 LOC)
    • 1 *.snap files (1,886 LOC)
    • 5 *.tsx files (753 LOC)
    • 3 *.js files (32 LOC)
  • " *.ts" is biggest, containing 77.78% of LOC.
  • " *.js" is smallest, containing 0.27% of LOC.


*.ts9352 LOC (77%) 67 files
*.snap1886 LOC (15%) 1 file
*.tsx753 LOC (6%) 5 files
*.js32 LOC (<1%) 3 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 ".*[.]sh".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/pnpm.*[.]ya?ml".
  • 7 files match defined criteria (4,908 LOC, 14.7% vs. main code):
    • 1 *.yaml files (4,393 LOC)
    • 3 *.js files (397 LOC)
    • 3 *.sh files (118 LOC)
  • " *.yaml" is biggest, containing 89.51% of LOC.
  • " *.sh" is smallest, containing 2.4% of LOC.


*.yaml4393 LOC (89%) 1 file
*.js397 LOC (8%) 3 files
*.sh118 LOC (2%) 3 files
Other Code
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[.]prettierignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]editorconfig".
  • 38 files match defined criteria (2,229 LOC, 6.7% vs. main code):
    • 35 *.json files (2,151 LOC)
    • 3 *.md files (78 LOC)
  • " *.json" is biggest, containing 96.5% of LOC.
  • " *.md" is smallest, containing 3.5% of LOC.


*.json2151 LOC (96%) 35 files
*.md78 LOC (3%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-09 20:52