Source Code Analysis Scope
Files includes and excluded from analyses
mjs
jsonl
mako
ini

scoping details...
  • 20 extensions are included in analyses: tsx, ts, json, py, md, js, svg, css, mjs, gitignore, txt, ipynb, yaml, html, scss, jsonl, cjs, toml, mako, ini
  • 10 criteria are used to exclude files from analysis:
    • exclude files with path like ".*/cache/.*" (Caches) (1 file).
    • exclude files with path like ".*/docs/.*" (Documentation) (1 file).
    • exclude files with path like ".*\.d\.ts" (Typescript definition files) (13 files).
    • exclude files with path like ".*/dist/.*" (Distributions) (0 files).
    • exclude files with path like ".*/git[-]commit[-]trailers[.]txt" (Git history trailers) (1 file).
    • exclude files with path like ".*/git[-]history[.]txt" (Git history) (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.
main99950 LOC (46%) 682 files
test4621 LOC (2%) 44 files
generated37594 LOC (17%) 11 files
build and deployment25556 LOC (11%) 34 files
other47887 LOC (22%) 211 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
mjs
mako
jsonl
Explore:   circles  |  sunburst

tsx28209 LOC (28%) 241 files
ts24002 LOC (24%) 191 files
ipynb14857 LOC (14%) 13 files
py12281 LOC (12%) 135 files
css11868 LOC (11%) 27 files
html3213 LOC (3%) 10 files
js2993 LOC (2%) 30 files
yaml1773 LOC (1%) 3 files
scss409 LOC (<1%) 5 files
mjs192 LOC (<1%) 20 files
cjs132 LOC (<1%) 4 files
mako17 LOC (<1%) 1 file
jsonl4 LOC (<1%) 2 files

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 682 files match defined criteria (99,950 LOC, 100.0% vs. main code):
    • 241 tsx files (28,209 LOC)
    • 191 ts files (24,002 LOC)
    • 13 ipynb files (14,857 LOC)
    • 135 py files (12,281 LOC)
    • 27 css files (11,868 LOC)
    • 10 html files (3,213 LOC)
    • 30 js files (2,993 LOC)
    • 3 yaml files (1,773 LOC)
    • 5 scss files (409 LOC)
    • 20 mjs files (192 LOC)
    • 4 cjs files (132 LOC)
    • 1 mako files (17 LOC)
    • 2 jsonl files (4 LOC)
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
mjs
Explore:   circles  |  sunburst

ts2991 LOC (64%) 31 files
mjs948 LOC (20%) 5 files
py411 LOC (8%) 5 files
tsx266 LOC (5%) 2 files
js5 LOC (<1%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*/vitest[.].*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*__tests__.*".
  • 44 files match defined criteria (4,621 LOC, 4.6% vs. main code):
    • 31 ts files (2,991 LOC)
    • 5 mjs files (948 LOC)
    • 5 py files (411 LOC)
    • 2 tsx files (266 LOC)
    • 1 js files (5 LOC)
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst

json37594 LOC (100%) 11 files

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

yaml25016 LOC (97%) 9 files
gitignore495 LOC (1%) 23 files
toml45 LOC (<1%) 2 files

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*/requirements[a-zA-Z0-9._-]*[.]txt".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/pnpm.*[.]ya?ml".
    • files with paths like ".*/pyproject[.]toml".
    • files with paths like "(.*/)?[.]eslintrc([.].*)?".
    • files with paths like ".*/docker[-]compose[.]yaml".
  • 34 files match defined criteria (25,556 LOC, 25.6% vs. main code):
    • 9 yaml files (25,016 LOC)
    • 23 gitignore files (495 LOC)
    • 2 toml files (45 LOC)
Other Code
ini
Explore:   circles  |  sunburst

json43510 LOC (90%) 139 files
md2884 LOC (6%) 40 files
svg724 LOC (1%) 16 files
txt658 LOC (1%) 13 files
py83 LOC (<1%) 2 files
ini28 LOC (<1%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]json".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]ini".
  • 211 files match defined criteria (47,887 LOC, 47.9% vs. main code):
    • 139 json files (43,510 LOC)
    • 40 md files (2,884 LOC)
    • 16 svg files (724 LOC)
    • 13 txt files (658 LOC)
    • 2 py files (83 LOC)
    • 1 ini files (28 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...
  • *.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
  • *.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
  • *.ipynb 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
  • *.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
  • *.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
  • *.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
  • *.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
  • *.scss files are analyzed with ScssAnalyzer:
    • 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
  • *.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
  • *.mako 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
  • *.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