guardian / consent-management-platform
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
editorconfig
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.

main5757 LOC (32%) 30 files
test2132 LOC (12%) 16 files
generated0 LOC (0%) 0 files
build and deployment9507 LOC (53%) 2 files
other241 LOC (1%) 13 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 ".*".
  • 30 files match defined criteria (5,757 LOC, 100.0% vs. main code):
    • 11 *.css files (3,722 LOC)
    • 15 *.ts files (1,842 LOC)
    • 1 *.yaml files (110 LOC)
    • 2 *.mjs files (70 LOC)
    • 1 *.html files (13 LOC)
  • " *.css" is biggest, containing 64.65% of LOC.
  • " *.html" is smallest, containing 0.23% of LOC.


*.css3722 LOC (64%) 11 files
*.ts1842 LOC (31%) 15 files
*.yaml110 LOC (1%) 1 file
*.mjs70 LOC (1%) 2 files
*.html13 LOC (<1%) 1 file
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]ests/.*".
    • files with paths like ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*[.]snap".
  • 16 files match defined criteria (2,132 LOC, 37.0% vs. main code):
    • 4 *.css files (1,468 LOC)
    • 1 *.snap files (365 LOC)
    • 6 *.ts files (278 LOC)
    • 4 *.js files (16 LOC)
    • 1 *.html files (5 LOC)
  • " *.css" is biggest, containing 68.86% of LOC.
  • " *.html" is smallest, containing 0.23% of LOC.


*.css1468 LOC (68%) 4 files
*.snap365 LOC (17%) 1 file
*.ts278 LOC (13%) 6 files
*.js16 LOC (<1%) 4 files
*.html5 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 ".*/pnpm.*[.]ya?ml".
    • files with paths like ".*/package[.]json".
  • 2 files match defined criteria (9,507 LOC, 165.1% vs. main code). All matches are in *.yaml files.


*.yaml9507 LOC (100%) 2 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 ".*[.]svg".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]prettierignore".
  • 13 files match defined criteria (241 LOC, 4.2% vs. main code):
    • 7 *.json files (168 LOC)
    • 5 *.md files (72 LOC)
    • 1 *.svg files (1 LOC)
  • " *.json" is biggest, containing 69.71% of LOC.
  • " *.svg" is smallest, containing 0.41% of LOC.


*.json168 LOC (69%) 7 files
*.md72 LOC (29%) 5 files
*.svg1 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-09 20:51