Source Code Analysis Scope
Files includes and excluded from analyses
mjs
snap
gitattributes
jsonl
editorconfig
babelrc
jsonc

scoping details...
  • 21 extensions are included in analyses: ts, json, md, cjs, yml, js, mjs, py, gitignore, tsx, txt, snap, gitattributes, sh, html, yaml, toml, jsonl, editorconfig, babelrc, jsonc
  • 7 criteria are used to exclude files from analysis:
    • exclude files with path like ".*\.d\.ts" (Typescript definition files) (2 files).
    • exclude files with path like ".*/docs/.*" (Documentation) (17 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.
main78270 LOC (24%) 468 files
test116135 LOC (35%) 488 files
generated55960 LOC (17%) 12 files
build and deployment6905 LOC (2%) 16 files
other68463 LOC (21%) 154 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

ts75760 LOC (96%) 444 files
py1547 LOC (1%) 4 files
cjs814 LOC (1%) 13 files
yaml128 LOC (<1%) 5 files
mjs18 LOC (<1%) 1 file
toml3 LOC (<1%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 468 files match defined criteria (78,270 LOC, 100.0% vs. main code):
    • 444 ts files (75,760 LOC)
    • 4 py files (1,547 LOC)
    • 13 cjs files (814 LOC)
    • 5 yaml files (128 LOC)
    • 1 mjs files (18 LOC)
    • 1 toml files (3 LOC)
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
snap
mjs
editorconfig
babelrc
jsonc
Explore:   circles  |  sunburst

ts112511 LOC (96%) 444 files
py1494 LOC (1%) 4 files
js1027 LOC (<1%) 9 files
cjs700 LOC (<1%) 13 files
gitignore129 LOC (<1%) 4 files
snap100 LOC (<1%) 2 files
tsx71 LOC (<1%) 4 files
toml37 LOC (<1%) 1 file
html21 LOC (<1%) 2 files
mjs20 LOC (<1%) 2 files
editorconfig11 LOC (<1%) 1 file
babelrc7 LOC (<1%) 1 file
jsonc7 LOC (<1%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*_test[.].*".
    • 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 ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*[.]snap".
    • files with paths like ".*/test_.*".
  • 488 files match defined criteria (116,135 LOC, 148.4% vs. main code):
    • 444 ts files (112,511 LOC)
    • 4 py files (1,494 LOC)
    • 9 js files (1,027 LOC)
    • 13 cjs files (700 LOC)
    • 4 gitignore files (129 LOC)
    • 2 snap files (100 LOC)
    • 4 tsx files (71 LOC)
    • 1 toml files (37 LOC)
    • 2 html files (21 LOC)
    • 2 mjs files (20 LOC)
    • 1 editorconfig files (11 LOC)
    • 1 babelrc files (7 LOC)
    • 1 jsonc files (7 LOC)
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst

json55960 LOC (100%) 12 files

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

yaml6870 LOC (99%) 11 files
gitignore19 LOC (<1%) 1 file
sh13 LOC (<1%) 2 files
gitattributes3 LOC (<1%) 2 files

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*/pnpm.*[.]ya?ml".
    • files with paths like ".*[.]editorconfig".
    • files with paths like "(.*/)?[.]editorconfig".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
    • files with paths like "(.*/)?[.]babelrc([.].*)?".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/[.]github/workflows/.*[.]ya?ml".
    • files with paths like "(.*/)?[.](idea|vscode|vs|gradle|mvn|settings|metadata|circleci)/.*".
  • 16 files match defined criteria (6,905 LOC, 8.8% vs. main code):
    • 11 yaml files (6,870 LOC)
    • 1 gitignore files (19 LOC)
    • 2 sh files (13 LOC)
    • 2 gitattributes files (3 LOC)
Other Code
mjs
jsonl
Explore:   circles  |  sunburst

json58198 LOC (85%) 63 files
md6893 LOC (10%) 27 files
ts3097 LOC (4%) 56 files
mjs263 LOC (<1%) 6 files
jsonl10 LOC (<1%) 1 file
gitignore2 LOC (<1%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 154 files match defined criteria (68,463 LOC, 87.5% vs. main code):
    • 63 json files (58,198 LOC)
    • 27 md files (6,893 LOC)
    • 56 ts files (3,097 LOC)
    • 6 mjs files (263 LOC)
    • 1 jsonl files (10 LOC)
    • 1 gitignore files (2 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
  • *.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
  • *.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
  • *.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