guardian / manage-frontend
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
babelrc
txt
mjs
editorconfig
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.

main57812 LOC (79%) 512 files
test12917 LOC (17%) 81 files
generated0 LOC (0%) 0 files
build and deployment260 LOC (<1%) 9 files
other1729 LOC (2%) 12 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 ".*".
  • 512 files match defined criteria (57,812 LOC, 100.0% vs. main code):
    • 343 *.tsx files (42,582 LOC)
    • 166 *.ts files (15,127 LOC)
    • 1 *.mjs files (60 LOC)
    • 2 *.yaml files (43 LOC)
  • " *.tsx" is biggest, containing 73.66% of LOC.
  • " *.yaml" is smallest, containing 0.07% of LOC.


*.tsx42582 LOC (73%) 343 files
*.ts15127 LOC (26%) 166 files
*.mjs60 LOC (<1%) 1 file
*.yaml43 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 ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*__tests__.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/e2e/.*".
    • files with paths like ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*[.]snap".
  • 81 files match defined criteria (12,917 LOC, 22.3% vs. main code):
    • 6 *.snap files (5,812 LOC)
    • 43 *.ts files (5,468 LOC)
    • 31 *.tsx files (1,636 LOC)
    • 1 *.js files (1 LOC)
  • " *.snap" is biggest, containing 44.99% of LOC.
  • " *.js" is smallest, containing 0.01% of LOC.


*.snap5812 LOC (44%) 6 files
*.ts5468 LOC (42%) 43 files
*.tsx1636 LOC (12%) 31 files
*.js1 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 ".*[.]sh".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[.]json".
  • 9 files match defined criteria (260 LOC, 0.4% vs. main code):
    • 5 *.js files (216 LOC)
    • 4 *.sh files (44 LOC)
  • " *.js" is biggest, containing 83.08% of LOC.
  • " *.sh" is smallest, containing 16.92% of LOC.


*.js216 LOC (83%) 5 files
*.sh44 LOC (16%) 4 files
Other Code
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 ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]prettierignore".
  • 12 files match defined criteria (1,729 LOC, 3.0% vs. main code):
    • 8 *.json files (1,627 LOC)
    • 4 *.md files (102 LOC)
  • " *.json" is biggest, containing 94.1% of LOC.
  • " *.md" is smallest, containing 5.9% of LOC.


*.json1627 LOC (94%) 8 files
*.md102 LOC (5%) 4 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-09 20:49