guardian / commercial
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
mjs
txt
editorconfig
npmrc
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.

main13404 LOC (49%) 177 files
test12462 LOC (45%) 98 files
generated0 LOC (0%) 0 files
build and deployment306 LOC (1%) 7 files
other1069 LOC (3%) 10 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 ".*".
  • 177 files match defined criteria (13,404 LOC, 100.0% vs. main code):
    • 169 *.ts files (12,996 LOC)
    • 6 *.js files (307 LOC)
    • 1 *.mjs files (80 LOC)
    • 1 *.yaml files (21 LOC)
  • " *.ts" is biggest, containing 96.96% of LOC.
  • " *.yaml" is smallest, containing 0.16% of LOC.


*.ts12996 LOC (96%) 169 files
*.js307 LOC (2%) 6 files
*.mjs80 LOC (<1%) 1 file
*.yaml21 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 ".*[-]test[-].*".
    • files with paths like ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[.]spec[.]ts".
    • files with paths like ".*/__mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
  • 98 files match defined criteria (12,462 LOC, 93.0% vs. main code):
    • 94 *.ts files (12,364 LOC)
    • 3 *.js files (81 LOC)
    • 1 *.html files (17 LOC)
  • " *.ts" is biggest, containing 99.21% of LOC.
  • " *.html" is smallest, containing 0.14% of LOC.


*.ts12364 LOC (99%) 94 files
*.js81 LOC (<1%) 3 files
*.html17 LOC (<1%) 1 file
Build and Deployment Code
Source code used to configure or support build and deployment process.
mjs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*([.]|/)webpack([.]|/).*".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/package[.]json".
  • 7 files match defined criteria (306 LOC, 2.3% vs. main code):
    • 5 *.mjs files (277 LOC)
    • 2 *.sh files (29 LOC)
  • " *.mjs" is biggest, containing 90.52% of LOC.
  • " *.sh" is smallest, containing 9.48% of LOC.


*.mjs277 LOC (90%) 5 files
*.sh29 LOC (9%) 2 files
Other Code
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]npmrc".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]prettierignore".
  • 10 files match defined criteria (1,069 LOC, 8.0% vs. main code):
    • 5 *.md files (887 LOC)
    • 4 *.json files (181 LOC)
    • 1 *.svg files (1 LOC)
  • " *.md" is biggest, containing 82.97% of LOC.
  • " *.svg" is smallest, containing 0.09% of LOC.


*.md887 LOC (82%) 5 files
*.json181 LOC (16%) 4 files
*.svg1 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-09 20:53