guardian / support-frontend
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
properties
editorconfig
txt
eslintignore
gitattributes
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.

main79344 LOC (68%) 1,176 files
test32756 LOC (28%) 274 files
generated0 LOC (0%) 0 files
build and deployment512 LOC (<1%) 19 files
other3971 LOC (3%) 47 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 ".*".
  • 1176 files match defined criteria (79,344 LOC, 100.0% vs. main code):
    • 338 *.tsx files (29,440 LOC)
    • 463 *.scala files (24,662 LOC)
    • 253 *.ts files (18,130 LOC)
    • 51 *.scss files (4,112 LOC)
    • 11 *.yaml files (1,185 LOC)
    • 31 *.sbt files (872 LOC)
    • 13 *.html files (577 LOC)
    • 10 *.xml files (248 LOC)
    • 6 *.js files (118 LOC)
  • " *.tsx" is biggest, containing 37.1% of LOC.
  • " *.js" is smallest, containing 0.15% of LOC.


*.tsx29440 LOC (37%) 338 files
*.scala24662 LOC (31%) 463 files
*.ts18130 LOC (22%) 253 files
*.scss4112 LOC (5%) 51 files
*.yaml1185 LOC (1%) 11 files
*.sbt872 LOC (1%) 31 files
*.html577 LOC (<1%) 13 files
*.xml248 LOC (<1%) 10 files
*.js118 LOC (<1%) 6 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 ".*/[Tt]est/.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*[.]snap".
    • files with paths like ".*__tests__.*".
    • files with paths like ".*[.]spec[.]ts".
    • files with paths like ".*/__mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*/jest[.][a-zA-Z0-9\.]+".
  • 274 files match defined criteria (32,756 LOC, 41.3% vs. main code):
    • 152 *.scala files (14,355 LOC)
    • 82 *.ts files (9,483 LOC)
    • 10 *.snap files (7,151 LOC)
    • 15 *.tsx files (1,471 LOC)
    • 2 *.yaml files (154 LOC)
    • 4 *.xml files (59 LOC)
    • 5 *.java files (55 LOC)
    • 1 *.sbt files (19 LOC)
    • 2 *.js files (8 LOC)
    • 1 *.sh files (1 LOC)
  • " *.scala" is biggest, containing 43.82% of LOC.
  • " *.sh" is smallest, containing 0% of LOC.


*.scala14355 LOC (43%) 152 files
*.ts9483 LOC (28%) 82 files
*.snap7151 LOC (21%) 10 files
*.tsx1471 LOC (4%) 15 files
*.yaml154 LOC (<1%) 2 files
*.xml59 LOC (<1%) 4 files
*.java55 LOC (<1%) 5 files
*.sbt19 LOC (<1%) 1 file
*.js8 LOC (<1%) 2 files
*.sh1 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
    • files with paths like ".*/pnpm.*[.]ya?ml".
    • files with paths like ".*/[.]gitattributes".
  • 19 files match defined criteria (512 LOC, 0.6% vs. main code):
    • 4 *.js files (271 LOC)
    • 14 *.sh files (239 LOC)
    • 1 *.yaml files (2 LOC)
  • " *.js" is biggest, containing 52.93% of LOC.
  • " *.yaml" is smallest, containing 0.39% of LOC.


*.js271 LOC (52%) 4 files
*.sh239 LOC (46%) 14 files
*.yaml2 LOC (<1%) 1 file
Other Code
txt
properties
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 ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]properties".
  • 47 files match defined criteria (3,971 LOC, 5.0% vs. main code):
    • 23 *.json files (2,388 LOC)
    • 20 *.md files (1,571 LOC)
    • 1 *.txt files (9 LOC)
    • 3 *.properties files (3 LOC)
  • " *.json" is biggest, containing 60.14% of LOC.
  • " *.properties" is smallest, containing 0.08% of LOC.


*.json2388 LOC (60%) 23 files
*.md1571 LOC (39%) 20 files
*.txt9 LOC (<1%) 1 file
*.properties3 LOC (<1%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-09 20:48