Source Code Analysis Scope
Files includes and excluded from analyses
snap
ini
prisma
mjs
npmrc
prettierignore

scoping details...
  • 18 extensions are included in analyses: ts, sql, json, md, yaml, yml, gitignore, sh, snap, txt, js, xml, ini, toml, prisma, mjs, npmrc, prettierignore
  • 7 criteria are used to exclude files from analysis:
    • exclude files with path like ".*/docs/.*" (Documentation) (5 files).
    • exclude files with path like ".*/bin/.*" (Binaries for distribution) (1 file).
    • exclude files with path like ".*/git[-]commit[-]trailers[.]txt" (Git history trailers) (1 file).
    • exclude files with path like ".*/git[-][a-zA-Z0-9_]+[.]txt" (Git data exports for sokrates analyses) (1 file).
    • exclude files with path like ".*/_sokrates/.*" (Sokrates files) (0 files).
    • exclude files with path like ".*/_sokrates_landscape/.*" (Sokrates landscape files) (0 files).
    • exclude files with path like ".*/sokrates_.*?[.]json" (Sokrates conventions and configurations) (0 files).
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.
main16164 LOC (65%) 238 files
test6252 LOC (25%) 43 files
generated0 LOC (0%) 0 files
build and deployment872 LOC (3%) 29 files
other1412 LOC (5%) 61 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
prisma
mjs
Explore:   circles  |  sunburst

ts10091 LOC (62%) 127 files
sql4382 LOC (27%) 100 files
prisma1373 LOC (8%) 1 file
yaml295 LOC (1%) 8 files
mjs20 LOC (<1%) 1 file
toml3 LOC (<1%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 238 files match defined criteria (16,164 LOC, 100.0% vs. main code):
    • 127 ts files (10,091 LOC)
    • 100 sql files (4,382 LOC)
    • 1 prisma files (1,373 LOC)
    • 8 yaml files (295 LOC)
    • 1 mjs files (20 LOC)
    • 1 toml files (3 LOC)
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
snap
Explore:   circles  |  sunburst

ts5599 LOC (89%) 34 files
snap468 LOC (7%) 3 files
yaml94 LOC (1%) 4 files
js91 LOC (1%) 2 files

scope details...
  • The following criteria are used to filter files:
    • 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".
    • files with paths like ".*/test[-]data/.*".
    • files with paths like ".*/[Tt]est/.*".
  • 43 files match defined criteria (6,252 LOC, 38.7% vs. main code):
    • 34 ts files (5,599 LOC)
    • 3 snap files (468 LOC)
    • 4 yaml files (94 LOC)
    • 2 js files (91 LOC)
Build and Deployment Code
Source code used to configure or support build and deployment process.
npmrc
prettierignore
Explore:   circles  |  sunburst

yaml380 LOC (43%) 11 files
sh243 LOC (27%) 5 files
gitignore235 LOC (26%) 9 files
xml12 LOC (1%) 2 files
npmrc1 LOC (<1%) 1 file
prettierignore1 LOC (<1%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*[.]npmrc".
    • files with paths like "(.*/)?[.]npmrc".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]prettierignore".
    • files with paths like "(.*/)?[.]prettierignore".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/docker[-]compose[.]yaml".
    • files with paths like ".*/[.]github/workflows/.*[.]ya?ml".
    • files with paths like "(.*/)?[.](idea|vscode|vs|gradle|mvn|settings|metadata|circleci)/.*".
  • 29 files match defined criteria (872 LOC, 5.4% vs. main code):
    • 11 yaml files (380 LOC)
    • 5 sh files (243 LOC)
    • 9 gitignore files (235 LOC)
    • 2 xml files (12 LOC)
    • 1 npmrc files (1 LOC)
    • 1 prettierignore files (1 LOC)
Other Code
ini
Explore:   circles  |  sunburst

md1001 LOC (70%) 27 files
json407 LOC (28%) 33 files
ini4 LOC (<1%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]json".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]ini".
    • files with paths like ".*[.]txt".
  • 61 files match defined criteria (1,412 LOC, 8.7% vs. main code):
    • 27 md files (1,001 LOC)
    • 33 json files (407 LOC)
    • 1 ini files (4 LOC)
About This Analysis
learn more about scopes (main, test, generated, build, 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.

learn more about used code analyzers...
  • *.ts files are analyzed with TypeScriptAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • Unit size analysis
    • Conditional complexity analysis
    • No dependency analysis
  • *.sql files are analyzed with SqlAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.prisma files are analyzed with DefaultLanguageAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Basic code cleaning (empty lines removed for LOC calculations and duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.yaml files are analyzed with YamlAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.mjs files are analyzed with DefaultLanguageAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Basic code cleaning (empty lines removed for LOC calculations and duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.toml files are analyzed with DefaultLanguageAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Basic code cleaning (empty lines removed for LOC calculations and duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis