guardian / service-catalogue
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
ini
txt
prisma
mjs
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.

main10887 LOC (68%) 167 files
test3531 LOC (22%) 31 files
generated0 LOC (0%) 0 files
build and deployment311 LOC (1%) 6 files
other1091 LOC (6%) 53 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
prisma
mjs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 167 files match defined criteria (10,887 LOC, 100.0% vs. main code):
    • 99 *.ts files (7,591 LOC)
    • 62 *.sql files (2,318 LOC)
    • 1 *.prisma files (875 LOC)
    • 3 *.yaml files (92 LOC)
    • 1 *.mjs files (8 LOC)
    • 1 *.toml files (3 LOC)
  • " *.ts" is biggest, containing 69.73% of LOC.
  • " *.toml" is smallest, containing 0.03% of LOC.


*.ts7591 LOC (69%) 99 files
*.sql2318 LOC (21%) 62 files
*.prisma875 LOC (8%) 1 file
*.yaml92 LOC (<1%) 3 files
*.mjs8 LOC (<1%) 1 file
*.toml3 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 ".*[.]test[.].*".
    • files with paths like ".*/test[-]data/.*".
    • files with paths like ".*/jest[.][a-zA-Z0-9\.]+".
  • 31 files match defined criteria (3,531 LOC, 32.4% vs. main code):
    • 28 *.ts files (3,441 LOC)
    • 3 *.js files (90 LOC)
  • " *.ts" is biggest, containing 97.45% of LOC.
  • " *.js" is smallest, containing 2.55% of LOC.


*.ts3441 LOC (97%) 28 files
*.js90 LOC (2%) 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/docker[-]compose[.]yaml".
    • files with paths like ".*[.]sh".
  • 6 files match defined criteria (311 LOC, 2.9% vs. main code):
    • 5 *.sh files (221 LOC)
    • 1 *.yaml files (90 LOC)
  • " *.sh" is biggest, containing 71.06% of LOC.
  • " *.yaml" is smallest, containing 28.94% of LOC.


*.sh221 LOC (71%) 5 files
*.yaml90 LOC (28%) 1 file
Other Code
ini
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]ini".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
  • 53 files match defined criteria (1,091 LOC, 10.0% vs. main code):
    • 22 *.md files (718 LOC)
    • 30 *.json files (369 LOC)
    • 1 *.ini files (4 LOC)
  • " *.md" is biggest, containing 65.81% of LOC.
  • " *.ini" is smallest, containing 0.37% of LOC.


*.md718 LOC (65%) 22 files
*.json369 LOC (33%) 30 files
*.ini4 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-09 20:56