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

main23878 LOC (56%) 269 files
test4709 LOC (11%) 29 files
generated0 LOC (0%) 0 files
build and deployment13392 LOC (31%) 7 files
other324 LOC (<1%) 13 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 ".*".
  • 269 files match defined criteria (23,878 LOC, 100.0% vs. main code):
    • 151 *.tsx files (18,347 LOC)
    • 79 *.scala files (3,573 LOC)
    • 31 *.ts files (1,802 LOC)
    • 2 *.sbt files (65 LOC)
    • 2 *.html files (43 LOC)
    • 1 *.xml files (26 LOC)
    • 1 *.yaml files (18 LOC)
    • 2 *.css files (4 LOC)
  • " *.tsx" is biggest, containing 76.84% of LOC.
  • " *.css" is smallest, containing 0.02% of LOC.


*.tsx18347 LOC (76%) 151 files
*.scala3573 LOC (14%) 79 files
*.ts1802 LOC (7%) 31 files
*.sbt65 LOC (<1%) 2 files
*.html43 LOC (<1%) 2 files
*.xml26 LOC (<1%) 1 file
*.yaml18 LOC (<1%) 1 file
*.css4 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 ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*[.]snap".
    • files with paths like ".*/[Tt]ests/.*".
  • 29 files match defined criteria (4,709 LOC, 19.7% vs. main code):
    • 1 *.snap files (3,099 LOC)
    • 14 *.tsx files (966 LOC)
    • 6 *.scala files (463 LOC)
    • 5 *.ts files (167 LOC)
    • 3 *.js files (14 LOC)
  • " *.snap" is biggest, containing 65.81% of LOC.
  • " *.js" is smallest, containing 0.3% of LOC.


*.snap3099 LOC (65%) 1 file
*.tsx966 LOC (20%) 14 files
*.scala463 LOC (9%) 6 files
*.ts167 LOC (3%) 5 files
*.js14 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 ".*([.]|/)webpack([.]|/).*".
    • files with paths like ".*/pnpm.*[.]ya?ml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/[.]gitattributes".
  • 7 files match defined criteria (13,392 LOC, 56.1% vs. main code):
    • 3 *.yaml files (13,310 LOC)
    • 2 *.js files (68 LOC)
    • 2 *.sh files (14 LOC)
  • " *.yaml" is biggest, containing 99.39% of LOC.
  • " *.sh" is smallest, containing 0.1% of LOC.


*.yaml13310 LOC (99%) 3 files
*.js68 LOC (<1%) 2 files
*.sh14 LOC (<1%) 2 files
Other Code
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/[.]eslintignore".
    • 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 ".*[.]properties".
  • 13 files match defined criteria (324 LOC, 1.4% vs. main code):
    • 8 *.json files (218 LOC)
    • 4 *.md files (105 LOC)
    • 1 *.properties files (1 LOC)
  • " *.json" is biggest, containing 67.28% of LOC.
  • " *.properties" is smallest, containing 0.31% of LOC.


*.json218 LOC (67%) 8 files
*.md105 LOC (32%) 4 files
*.properties1 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-09 20:50