Source Code Analysis Scope
Files includes and excluded from analyses
mjs
jsonc
patch
npmrc
snap
prettierignore

scoping details...
  • 18 extensions are included in analyses: ts, json, md, mjs, cjs, txt, gitignore, yml, html, sh, yaml, js, svg, jsonc, patch, npmrc, snap, prettierignore
  • 7 criteria are used to exclude files from analysis:
    • exclude files with path like ".*/bin/.*" (Binaries for distribution) (1 file).
    • exclude files with path like ".*\.d\.ts" (Typescript definition files) (10 files).
    • 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.
main39000 LOC (25%) 307 files
test40036 LOC (26%) 262 files
generated26480 LOC (17%) 20 files
build and deployment7668 LOC (5%) 12 files
other37039 LOC (24%) 203 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

ts38697 LOC (99%) 294 files
cjs215 LOC (<1%) 10 files
mjs87 LOC (<1%) 2 files
yaml1 LOC (<1%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 307 files match defined criteria (39,000 LOC, 100.0% vs. main code):
    • 294 ts files (38,697 LOC)
    • 10 cjs files (215 LOC)
    • 2 mjs files (87 LOC)
    • 1 yaml files (1 LOC)
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
mjs
snap
jsonc
npmrc
Explore:   circles  |  sunburst

ts38519 LOC (96%) 230 files
mjs1010 LOC (2%) 17 files
yaml264 LOC (<1%) 2 files
cjs106 LOC (<1%) 1 file
js43 LOC (<1%) 2 files
snap39 LOC (<1%) 1 file
html28 LOC (<1%) 5 files
gitignore11 LOC (<1%) 2 files
jsonc8 LOC (<1%) 1 file
npmrc8 LOC (<1%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/vitest[.].*".
    • files with paths like ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*[.]snap".
  • 262 files match defined criteria (40,036 LOC, 102.7% vs. main code):
    • 230 ts files (38,519 LOC)
    • 17 mjs files (1,010 LOC)
    • 2 yaml files (264 LOC)
    • 1 cjs files (106 LOC)
    • 2 js files (43 LOC)
    • 1 snap files (39 LOC)
    • 5 html files (28 LOC)
    • 2 gitignore files (11 LOC)
    • 1 jsonc files (8 LOC)
    • 1 npmrc files (8 LOC)
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst

json26480 LOC (100%) 20 files

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*/package[-]lock[.]json".
  • 20 files match defined criteria (26,480 LOC, 67.9% vs. main code). All matches are in json files.
Build and Deployment Code
Source code used to configure or support build and deployment process.
prettierignore
Explore:   circles  |  sunburst

yaml7530 LOC (98%) 5 files
sh85 LOC (1%) 3 files
gitignore46 LOC (<1%) 3 files
prettierignore7 LOC (<1%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*/pnpm.*[.]ya?ml".
    • files with paths like ".*[.]npmrc".
    • files with paths like "(.*/)?[.]npmrc".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like "(.*/)?[.]yarnrc([.].*)?".
    • files with paths like ".*/[.]prettierignore".
    • files with paths like "(.*/)?[.]prettierignore".
    • files with paths like "(.*/)?[.]prettierrc([.].*)?".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/[.]github/workflows/.*[.]ya?ml".
  • 12 files match defined criteria (7,668 LOC, 19.7% vs. main code):
    • 5 yaml files (7,530 LOC)
    • 3 sh files (85 LOC)
    • 3 gitignore files (46 LOC)
    • 1 prettierignore files (7 LOC)
Other Code
patch
Explore:   circles  |  sunburst

json29062 LOC (78%) 132 files
md6174 LOC (16%) 25 files
ts1656 LOC (4%) 42 files
txt80 LOC (<1%) 3 files
patch67 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 ".*[.]patch".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 203 files match defined criteria (37,039 LOC, 95.0% vs. main code):
    • 132 json files (29,062 LOC)
    • 25 md files (6,174 LOC)
    • 42 ts files (1,656 LOC)
    • 3 txt files (80 LOC)
    • 1 patch files (67 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
  • *.cjs files are analyzed with JavaScriptAnalyzer:
    • 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
  • *.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
  • *.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