Source Code Analysis Scope
Files includes and excluded from analyses
jsonl
mjs
nsh
patch
snap
plist
cmd
nsi
npmignore
webmanifest
gitattributes
editorconfig
ini

scoping details...
  • 33 extensions are included in analyses: ts, md, yaml, json, tsx, jsonl, yml, css, txt, mjs, js, py, svg, ps1, html, nsh, cpp, patch, sh, gitignore, h, c, snap, plist, cmd, nsi, toml, cjs, npmignore, webmanifest, gitattributes, editorconfig, ini
  • 8 criteria are used to exclude files from analysis:
    • exclude files with path like ".*/docs/.*" (Documentation) (539 files).
    • exclude files with path like ".*\.d\.ts" (Typescript definition files) (69 files).
    • exclude files with path like ".*/git[-]commit[-]trailers[.]txt" (Git history trailers) (1 file).
    • exclude files with path like ".*/[Vv]endors?/.*" (Dependencies) (64 files).
    • 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 ".*/git[-][a-zA-Z0-9_]+[.]txt" (Git data exports for sokrates analyses) (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.
main409870 LOC (34%) 5,197 files
test588295 LOC (48%) 2,676 files
generated9094 LOC (<1%) 3 files
build and deployment3493 LOC (<1%) 39 files
other193336 LOC (16%) 4,448 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
mjs
nsh
jsonl
cmd
webmanifest
Explore:   circles  |  sunburst

ts285323 LOC (69%) 2,444 files
tsx43507 LOC (10%) 322 files
yaml37117 LOC (9%) 1,996 files
css24776 LOC (6%) 214 files
mjs7932 LOC (1%) 92 files
py5669 LOC (1%) 17 files
ps11405 LOC (<1%) 8 files
nsh1231 LOC (<1%) 9 files
jsonl994 LOC (<1%) 65 files
h602 LOC (<1%) 5 files
cpp417 LOC (<1%) 3 files
c331 LOC (<1%) 3 files
js320 LOC (<1%) 9 files
html134 LOC (<1%) 5 files
cjs72 LOC (<1%) 1 file
cmd25 LOC (<1%) 3 files
webmanifest15 LOC (<1%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 5197 files match defined criteria (409,870 LOC, 100.0% vs. main code):
    • 2,444 ts files (285,323 LOC)
    • 322 tsx files (43,507 LOC)
    • 1,996 yaml files (37,117 LOC)
    • 214 css files (24,776 LOC)
    • 92 mjs files (7,932 LOC)
    • 17 py files (5,669 LOC)
    • 8 ps1 files (1,405 LOC)
    • 9 nsh files (1,231 LOC)
    • 65 jsonl files (994 LOC)
    • 5 h files (602 LOC)
    • 3 cpp files (417 LOC)
    • 3 c files (331 LOC)
    • 9 js files (320 LOC)
    • 5 html files (134 LOC)
    • 1 cjs files (72 LOC)
    • 3 cmd files (25 LOC)
    • 1 webmanifest files (15 LOC)
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
mjs
snap
jsonl
nsi
Explore:   circles  |  sunburst

ts494956 LOC (84%) 2,142 files
tsx80321 LOC (13%) 280 files
mjs5356 LOC (<1%) 51 files
py2787 LOC (<1%) 13 files
js1257 LOC (<1%) 29 files
yaml1138 LOC (<1%) 94 files
ps1739 LOC (<1%) 5 files
snap665 LOC (<1%) 3 files
jsonl575 LOC (<1%) 48 files
cpp332 LOC (<1%) 5 files
nsi96 LOC (<1%) 2 files
c69 LOC (<1%) 1 file
cjs2 LOC (<1%) 1 file
html2 LOC (<1%) 2 files

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*/vitest[.].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*[.]spec[.]ts".
    • files with paths like ".*[-]tests[-].*".
    • files with paths like ".*/testing[.].*".
    • files with paths like ".*/mock[^/]*/.*".
    • files with paths like ".*[.]spec[.]tsx".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*[.]snap".
    • files with paths like ".*[-]tests/.*".
  • 2676 files match defined criteria (588,295 LOC, 143.5% vs. main code):
    • 2,142 ts files (494,956 LOC)
    • 280 tsx files (80,321 LOC)
    • 51 mjs files (5,356 LOC)
    • 13 py files (2,787 LOC)
    • 29 js files (1,257 LOC)
    • 94 yaml files (1,138 LOC)
    • 5 ps1 files (739 LOC)
    • 3 snap files (665 LOC)
    • 48 jsonl files (575 LOC)
    • 5 cpp files (332 LOC)
    • 2 nsi files (96 LOC)
    • 1 c files (69 LOC)
    • 1 cjs files (2 LOC)
    • 2 html files (2 LOC)
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst

json8539 LOC (93%) 1 file
md555 LOC (6%) 2 files

scope details...
  • The following criteria are used to filter files:
    • files with any line of content like "\<\!\-\-[ ]*Generated by .*".
    • files with paths like ".*/package[-]lock[.]json".
  • 3 files match defined criteria (9,094 LOC, 2.2% vs. main code):
    • 1 json files (8,539 LOC)
    • 2 md files (555 LOC)
Build and Deployment Code
Source code used to configure or support build and deployment process.
gitattributes
editorconfig
npmignore
Explore:   circles  |  sunburst

yaml3068 LOC (87%) 22 files
sh274 LOC (7%) 6 files
gitignore67 LOC (1%) 6 files
toml63 LOC (1%) 2 files
gitattributes13 LOC (<1%) 1 file
editorconfig7 LOC (<1%) 1 file
npmignore1 LOC (<1%) 1 file

scope details...
  • 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 ".*/pyproject[.]toml".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]editorconfig".
    • files with paths like "(.*/)?[.]editorconfig".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/[.]github/workflows/.*[.]ya?ml".
    • files with paths like ".*/requirements[a-zA-Z0-9._-]*[.]txt".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*/[.]gitlab[-]ci[.]yml".
    • files with paths like ".*/[.]npmignore".
    • files with paths like "(.*/)?[.]npmignore".
    • files with paths like ".*/pnpm.*[.]ya?ml".
  • 39 files match defined criteria (3,493 LOC, 0.9% vs. main code):
    • 22 yaml files (3,068 LOC)
    • 6 sh files (274 LOC)
    • 6 gitignore files (67 LOC)
    • 2 toml files (63 LOC)
    • 1 gitattributes files (13 LOC)
    • 1 editorconfig files (7 LOC)
    • 1 npmignore files (1 LOC)
Other Code
patch
mjs
plist
ini
Explore:   circles  |  sunburst

md126607 LOC (65%) 3,254 files
json62726 LOC (32%) 977 files
txt2029 LOC (1%) 174 files
patch1141 LOC (<1%) 6 files
mjs361 LOC (<1%) 4 files
svg181 LOC (<1%) 17 files
ts162 LOC (<1%) 6 files
yaml67 LOC (<1%) 5 files
py37 LOC (<1%) 1 file
plist20 LOC (<1%) 3 files
ini5 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 ".*[.]ini".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]patch".
    • files with paths like ".*[.]plist".
    • files with paths like ".*/vendor/.*".
  • 4448 files match defined criteria (193,336 LOC, 47.2% vs. main code):
    • 3,254 md files (126,607 LOC)
    • 977 json files (62,726 LOC)
    • 174 txt files (2,029 LOC)
    • 6 patch files (1,141 LOC)
    • 4 mjs files (361 LOC)
    • 17 svg files (181 LOC)
    • 6 ts files (162 LOC)
    • 5 yaml files (67 LOC)
    • 1 py files (37 LOC)
    • 3 plist files (20 LOC)
    • 1 ini files (5 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
  • *.tsx 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
  • *.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
  • *.css files are analyzed with CssAnalyzer:
    • 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
  • *.py files are analyzed with PythonAnalyzer:
    • 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
    • Basic heuristic dependency analysis
  • *.ps1 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
  • *.nsh files are analyzed with AdabasNaturalAnalyzer:
    • 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
    • Basic heuristic dependency analysis
  • *.jsonl files are analyzed with JsonAnalyzer:
    • 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
  • *.h files are analyzed with CppAnalyzer:
    • 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
    • Advanced heuristic dependency analysis
  • *.cpp files are analyzed with CppAnalyzer:
    • 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
    • Advanced heuristic dependency analysis
  • *.c files are analyzed with CStyleAnalyzer:
    • 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
  • *.js 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
  • *.html files are analyzed with HtmlAnalyzer:
    • 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
    • Advanced heuristic 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
  • *.cmd 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
  • *.webmanifest files are analyzed with JsonAnalyzer:
    • 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