guardian / support-service-lambdas
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
t
properties
sc
txt
prettierignore
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.

main55098 LOC (36%) 797 files
test75114 LOC (49%) 493 files
generated709 LOC (<1%) 1 file
build and deployment97 LOC (<1%) 6 files
other20042 LOC (13%) 207 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
t
sc
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 797 files match defined criteria (55,098 LOC, 100.0% vs. main code):
    • 513 *.scala files (31,696 LOC)
    • 164 *.ts files (13,905 LOC)
    • 76 *.yaml files (8,063 LOC)
    • 3 *.sbt files (788 LOC)
    • 30 *.xml files (360 LOC)
    • 9 *.t files (260 LOC)
    • 1 *.sc files (13 LOC)
    • 1 *.js files (13 LOC)
  • " *.scala" is biggest, containing 57.53% of LOC.
  • " *.js" is smallest, containing 0.02% of LOC.


*.scala31696 LOC (57%) 513 files
*.ts13905 LOC (25%) 164 files
*.yaml8063 LOC (14%) 76 files
*.sbt788 LOC (1%) 3 files
*.xml360 LOC (<1%) 30 files
*.t260 LOC (<1%) 9 files
*.sc13 LOC (<1%) 1 file
*.js13 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
snap
t
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/test[.].*".
    • 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 ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/[Mm]ocks/.*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*[.]snap".
  • 493 files match defined criteria (75,114 LOC, 136.3% vs. main code):
    • 18 *.snap files (41,566 LOC)
    • 348 *.scala files (27,756 LOC)
    • 96 *.ts files (5,510 LOC)
    • 28 *.js files (246 LOC)
    • 2 *.t files (25 LOC)
    • 1 *.xml files (11 LOC)
  • " *.snap" is biggest, containing 55.34% of LOC.
  • " *.xml" is smallest, containing 0.01% of LOC.


*.snap41566 LOC (55%) 18 files
*.scala27756 LOC (36%) 348 files
*.ts5510 LOC (7%) 96 files
*.js246 LOC (<1%) 28 files
*.t25 LOC (<1%) 2 files
*.xml11 LOC (<1%) 1 file
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/package[-]lock[.]json".
  • 1 file matches defined criteria (709 LOC, 1.3% vs. main code). All matches are in *.json files.


*.json709 LOC (100%) 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 ".*[.]sh".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/pnpm.*[.]ya?ml".
  • 6 files match defined criteria (97 LOC, 0.2% vs. main code):
    • 5 *.sh files (93 LOC)
    • 1 *.yaml files (4 LOC)
  • " *.sh" is biggest, containing 95.88% of LOC.
  • " *.yaml" is smallest, containing 4.12% of LOC.


*.sh93 LOC (95%) 5 files
*.yaml4 LOC (4%) 1 file
Other Code
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[.]prettierignore".
  • 207 files match defined criteria (20,042 LOC, 36.4% vs. main code):
    • 141 *.json files (17,689 LOC)
    • 61 *.md files (2,343 LOC)
    • 5 *.properties files (10 LOC)
  • " *.json" is biggest, containing 88.26% of LOC.
  • " *.properties" is smallest, containing 0.05% of LOC.


*.json17689 LOC (88%) 141 files
*.md2343 LOC (11%) 61 files
*.properties10 LOC (<1%) 5 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-09 20:48