guardian / csnx
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
mdx
mjs
svelte
editorconfig
npmrc
txt
snap
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.

main31017 LOC (46%) 469 files
test8617 LOC (13%) 96 files
generated10299 LOC (15%) 180 files
build and deployment10 LOC (<1%) 2 files
other16240 LOC (24%) 137 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
mjs
svelte
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 469 files match defined criteria (31,017 LOC, 100.0% vs. main code):
    • 251 *.ts files (17,075 LOC)
    • 151 *.tsx files (11,810 LOC)
    • 51 *.js files (1,392 LOC)
    • 15 *.mjs files (412 LOC)
    • 1 *.svelte files (328 LOC)
  • " *.ts" is biggest, containing 55.05% of LOC.
  • " *.svelte" is smallest, containing 1.06% of LOC.


*.ts17075 LOC (55%) 251 files
*.tsx11810 LOC (38%) 151 files
*.js1392 LOC (4%) 51 files
*.mjs412 LOC (1%) 15 files
*.svelte328 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 ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*[.]spec[.]js".
    • files with paths like ".*/e2e/.*".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*__tests__.*".
  • 96 files match defined criteria (8,617 LOC, 27.8% vs. main code):
    • 55 *.ts files (7,318 LOC)
    • 40 *.js files (1,186 LOC)
    • 1 *.tsx files (113 LOC)
  • " *.ts" is biggest, containing 84.93% of LOC.
  • " *.tsx" is smallest, containing 1.31% of LOC.


*.ts7318 LOC (84%) 55 files
*.js1186 LOC (13%) 40 files
*.tsx113 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 ".*/__generated__/.*".
  • 180 files match defined criteria (10,299 LOC, 33.2% vs. main code):
    • 173 *.tsx files (6,883 LOC)
    • 5 *.ts files (1,720 LOC)
    • 1 *.css files (1,687 LOC)
    • 1 *.md files (9 LOC)
  • " *.tsx" is biggest, containing 66.83% of LOC.
  • " *.md" is smallest, containing 0.09% of LOC.


*.tsx6883 LOC (66%) 173 files
*.ts1720 LOC (16%) 5 files
*.css1687 LOC (16%) 1 file
*.md9 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/pnpm.*[.]ya?ml".
  • 2 files match defined criteria (10 LOC, 0.0% vs. main code):
    • 1 *.yaml files (8 LOC)
    • 1 *.sh files (2 LOC)
  • " *.yaml" is biggest, containing 80% of LOC.
  • " *.sh" is smallest, containing 20% of LOC.


*.yaml8 LOC (80%) 1 file
*.sh2 LOC (20%) 1 file
Other Code
mdx
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 ".*[.]npmrc".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]mdx".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[.]prettierignore".
  • 137 files match defined criteria (16,240 LOC, 52.4% vs. main code):
    • 50 *.json files (11,101 LOC)
    • 72 *.md files (4,527 LOC)
    • 14 *.mdx files (504 LOC)
    • 1 *.svg files (108 LOC)
  • " *.json" is biggest, containing 68.36% of LOC.
  • " *.svg" is smallest, containing 0.67% of LOC.


*.json11101 LOC (68%) 50 files
*.md4527 LOC (27%) 72 files
*.mdx504 LOC (3%) 14 files
*.svg108 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-09 20:56