Source Code Analysis Scope
Files includes and excluded from analyses
npmrc
in
mjs
gitmodules

scoping details...
  • 21 extensions are included in analyses: md, py, json, ts, toml, sh, tsx, svg, gitignore, html, vue, npmrc, txt, css, in, js, yaml, mjs, ipynb, dockerignore, gitmodules
  • 9 criteria are used to exclude files from analysis:
    • exclude files with path like ".*/bin/.*" (Binaries for distribution) (6 files).
    • exclude files with path like ".*\.d\.ts" (Typescript definition files) (2 files).
    • exclude files with path like ".*/docs/.*" (Documentation) (1 file).
    • 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.
main28343 LOC (9%) 200 files
test4566 LOC (1%) 22 files
generated90454 LOC (31%) 12 files
build and deployment6022 LOC (2%) 59 files
other155665 LOC (54%) 176 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
mjs
in
Explore:   circles  |  sunburst

py14840 LOC (52%) 80 files
ts3678 LOC (12%) 37 files
tsx3099 LOC (10%) 20 files
css2699 LOC (9%) 8 files
html2328 LOC (8%) 13 files
js744 LOC (2%) 6 files
vue451 LOC (1%) 12 files
toml260 LOC (<1%) 11 files
mjs110 LOC (<1%) 4 files
yaml73 LOC (<1%) 2 files
in61 LOC (<1%) 7 files

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 200 files match defined criteria (28,343 LOC, 100.0% vs. main code):
    • 80 py files (14,840 LOC)
    • 37 ts files (3,678 LOC)
    • 20 tsx files (3,099 LOC)
    • 8 css files (2,699 LOC)
    • 13 html files (2,328 LOC)
    • 6 js files (744 LOC)
    • 12 vue files (451 LOC)
    • 11 toml files (260 LOC)
    • 4 mjs files (110 LOC)
    • 2 yaml files (73 LOC)
    • 7 in files (61 LOC)
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
Explore:   circles  |  sunburst

py4473 LOC (97%) 20 files
ts93 LOC (2%) 2 files

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*/[Tt]ests/.*".
  • 22 files match defined criteria (4,566 LOC, 16.1% vs. main code):
    • 20 py files (4,473 LOC)
    • 2 ts files (93 LOC)
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst

json90316 LOC (99%) 11 files
svg138 LOC (<1%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*/package[-]lock[.]json".
    • files with any line of content like "\<\!\-\-[ ]*Generated by .*".
  • 12 files match defined criteria (90,454 LOC, 319.1% vs. main code):
    • 11 json files (90,316 LOC)
    • 1 svg files (138 LOC)
Build and Deployment Code
Source code used to configure or support build and deployment process.
npmrc
gitmodules
Explore:   circles  |  sunburst

yaml4707 LOC (78%) 2 files
sh768 LOC (12%) 19 files
toml327 LOC (5%) 11 files
gitignore155 LOC (2%) 14 files
npmrc33 LOC (<1%) 11 files
dockerignore26 LOC (<1%) 1 file
gitmodules6 LOC (<1%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*[.]sh".
    • files with paths like ".*/pyproject[.]toml".
    • 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 ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/requirements[a-zA-Z0-9._-]*[.]txt".
    • files with paths like ".*/pnpm.*[.]ya?ml".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like "(.*/)?[.]dockerignore".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*/[.]github/workflows/.*[.]ya?ml".
  • 59 files match defined criteria (6,022 LOC, 21.2% vs. main code):
    • 2 yaml files (4,707 LOC)
    • 19 sh files (768 LOC)
    • 11 toml files (327 LOC)
    • 14 gitignore files (155 LOC)
    • 11 npmrc files (33 LOC)
    • 1 dockerignore files (26 LOC)
    • 1 gitmodules files (6 LOC)
Other Code
Explore:   circles  |  sunburst

json99819 LOC (64%) 55 files
md25521 LOC (16%) 102 files
txt16277 LOC (10%) 7 files
svg14048 LOC (9%) 12 files

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 ".*[.]txt".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/INSTALL[.][a-z0-9]+".
  • 176 files match defined criteria (155,665 LOC, 549.2% vs. main code):
    • 55 json files (99,819 LOC)
    • 102 md files (25,521 LOC)
    • 7 txt files (16,277 LOC)
    • 12 svg files (14,048 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...
  • *.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
  • *.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
  • *.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
  • *.vue 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
  • *.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
  • *.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
  • *.in files are analyzed with RustAnalyzer:
    • 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