guardian / commercial-templates
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
svelte
txt
editorconfig
eslintignore
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.

main5821 LOC (55%) 99 files
test409 LOC (3%) 10 files
generated0 LOC (0%) 0 files
build and deployment3747 LOC (35%) 1 file
other549 LOC (5%) 35 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
svelte
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 99 files match defined criteria (5,821 LOC, 100.0% vs. main code):
    • 57 *.svelte files (4,555 LOC)
    • 24 *.ts files (842 LOC)
    • 11 *.css files (246 LOC)
    • 1 *.py files (91 LOC)
    • 3 *.js files (72 LOC)
    • 3 *.html files (15 LOC)
  • " *.svelte" is biggest, containing 78.25% of LOC.
  • " *.html" is smallest, containing 0.26% of LOC.


*.svelte4555 LOC (78%) 57 files
*.ts842 LOC (14%) 24 files
*.css246 LOC (4%) 11 files
*.py91 LOC (1%) 1 file
*.js72 LOC (1%) 3 files
*.html15 LOC (<1%) 3 files
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[.].*".
  • 10 files match defined criteria (409 LOC, 7.0% vs. main code). All matches are in *.ts files.


*.ts409 LOC (100%) 10 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 ".*/pnpm.*[.]ya?ml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[.]json".
  • 1 file matches defined criteria (3,747 LOC, 64.4% vs. main code). All matches are in *.yaml files.


*.yaml3747 LOC (100%) 1 file
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 ".*[.]npmrc".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]prettierignore".
  • 35 files match defined criteria (549 LOC, 9.4% vs. main code):
    • 29 *.json files (435 LOC)
    • 5 *.md files (108 LOC)
    • 1 *.svg files (6 LOC)
  • " *.json" is biggest, containing 79.23% of LOC.
  • " *.svg" is smallest, containing 1.09% of LOC.


*.json435 LOC (79%) 29 files
*.md108 LOC (19%) 5 files
*.svg6 LOC (1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-09 20:47