twitter / sqrl
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
ejs
snap
npmignore
txt
editorconfig
eslintignore
npmrc
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.

main18149 LOC (48%) 218 files
test3590 LOC (9%) 95 files
generated10539 LOC (28%) 2 files
build and deployment27 LOC (<1%) 1 file
other4763 LOC (12%) 117 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
ejs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 218 files match defined criteria (18,149 LOC, 100.0% vs. main code):
    • 184 *.ts files (14,550 LOC)
    • 16 *.scss files (3,046 LOC)
    • 12 *.js files (315 LOC)
    • 1 *.yaml files (148 LOC)
    • 4 *.ejs files (55 LOC)
    • 1 *.py files (35 LOC)
  • " *.ts" is biggest, containing 80.17% of LOC.
  • " *.py" is smallest, containing 0.19% of LOC.


*.ts14550 LOC (80%) 184 files
*.scss3046 LOC (16%) 16 files
*.js315 LOC (1%) 12 files
*.yaml148 LOC (<1%) 1 file
*.ejs55 LOC (<1%) 4 files
*.py35 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 ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*__tests__.*".
    • files with paths like ".*[.]spec[.]ts".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*[.]snap".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/[Mm]ocks/.*".
    • files with paths like ".*[-]tests/.*".
  • 95 files match defined criteria (3,590 LOC, 19.8% vs. main code):
    • 70 *.ts files (3,126 LOC)
    • 4 *.snap files (303 LOC)
    • 21 *.js files (161 LOC)
  • " *.ts" is biggest, containing 87.08% of LOC.
  • " *.js" is smallest, containing 4.48% of LOC.


*.ts3126 LOC (87%) 70 files
*.snap303 LOC (8%) 4 files
*.js161 LOC (4%) 21 files
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with any line of content like "//[ ]*Generated by .*".
  • 2 files match defined criteria (10,539 LOC, 58.1% vs. main code). All matches are in *.ts files.


*.ts10539 LOC (100%) 2 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
  • 1 file matches defined criteria (27 LOC, 0.1% vs. main code). All matches are in *.js files.


*.js27 LOC (100%) 1 file
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[.]npmignore".
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*[.]npmrc".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*[.]txt".
  • 117 files match defined criteria (4,763 LOC, 26.2% vs. main code):
    • 50 *.json files (2,592 LOC)
    • 65 *.md files (2,155 LOC)
    • 1 *.ts files (11 LOC)
    • 1 *.txt files (5 LOC)
  • " *.json" is biggest, containing 54.42% of LOC.
  • " *.txt" is smallest, containing 0.1% of LOC.


*.json2592 LOC (54%) 50 files
*.md2155 LOC (45%) 65 files
*.ts11 LOC (<1%) 1 file
*.txt5 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-01-17 12:00