guardian / 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
mjs
txt
properties
sc
editorconfig
io
asc
pub
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.

main156322 LOC (73%) 2,187 files
test38398 LOC (18%) 370 files
generated0 LOC (0%) 0 files
build and deployment419 LOC (<1%) 8 files
other16155 LOC (7%) 266 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
mjs
pub
asc
io
sc
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 2187 files match defined criteria (156,322 LOC, 100.0% vs. main code):
    • 850 *.scala files (60,810 LOC)
    • 398 *.scss files (46,956 LOC)
    • 247 *.js files (21,176 LOC)
    • 527 *.html files (20,002 LOC)
    • 80 *.ts files (4,031 LOC)
    • 53 *.mjs files (1,843 LOC)
    • 11 *.css files (774 LOC)
    • 14 *.xml files (413 LOC)
    • 2 *.sbt files (215 LOC)
    • 1 *.yaml files (87 LOC)
    • 1 *.pub files (9 LOC)
    • 1 *.asc files (4 LOC)
    • 1 *.io files (1 LOC)
    • 1 *.sc files (1 LOC)
  • " *.scala" is biggest, containing 38.9% of LOC.
  • " *.sc" is smallest, containing 0% of LOC.


*.scala60810 LOC (38%) 850 files
*.scss46956 LOC (30%) 398 files
*.js21176 LOC (13%) 247 files
*.html20002 LOC (12%) 527 files
*.ts4031 LOC (2%) 80 files
*.mjs1843 LOC (1%) 53 files
*.css774 LOC (<1%) 11 files
*.xml413 LOC (<1%) 14 files
*.sbt215 LOC (<1%) 2 files
*.yaml87 LOC (<1%) 1 file
*.pub9 LOC (<1%) 1 file
*.asc4 LOC (<1%) 1 file
*.io1 LOC (<1%) 1 file
*.sc1 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
mjs
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 ".*[.]spec[.]ts".
    • files with paths like ".*[.]spec[.]js".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/__mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*__tests__.*".
    • files with paths like ".*/jest[.][a-zA-Z0-9\.]+".
  • 370 files match defined criteria (38,398 LOC, 24.6% vs. main code):
    • 255 *.scala files (18,498 LOC)
    • 5 *.xml files (8,328 LOC)
    • 73 *.js files (6,319 LOC)
    • 7 *.html files (2,953 LOC)
    • 27 *.ts files (2,214 LOC)
    • 2 *.mjs files (65 LOC)
    • 1 *.scss files (21 LOC)
  • " *.scala" is biggest, containing 48.17% of LOC.
  • " *.scss" is smallest, containing 0.05% of LOC.


*.scala18498 LOC (48%) 255 files
*.xml8328 LOC (21%) 5 files
*.js6319 LOC (16%) 73 files
*.html2953 LOC (7%) 7 files
*.ts2214 LOC (5%) 27 files
*.mjs65 LOC (<1%) 2 files
*.scss21 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 ".*[.]sh".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[.]json".
  • 8 files match defined criteria (419 LOC, 0.3% vs. main code):
    • 4 *.js files (221 LOC)
    • 2 *.sh files (148 LOC)
    • 2 *.mjs files (50 LOC)
  • " *.js" is biggest, containing 52.74% of LOC.
  • " *.mjs" is smallest, containing 11.93% of LOC.


*.js221 LOC (52%) 4 files
*.sh148 LOC (35%) 2 files
*.mjs50 LOC (11%) 2 files
Other Code
txt
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/vendor/.*".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]properties".
  • 266 files match defined criteria (16,155 LOC, 10.3% vs. main code):
    • 9 *.json files (14,551 LOC)
    • 7 *.txt files (718 LOC)
    • 229 *.svg files (426 LOC)
    • 14 *.md files (353 LOC)
    • 7 *.properties files (107 LOC)
  • " *.json" is biggest, containing 90.07% of LOC.
  • " *.properties" is smallest, containing 0.66% of LOC.


*.json14551 LOC (90%) 9 files
*.txt718 LOC (4%) 7 files
*.svg426 LOC (2%) 229 files
*.md353 LOC (2%) 14 files
*.properties107 LOC (<1%) 7 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-09 20:45