Source Code Analysis Scope
Files includes and excluded from analyses
mdx
mjs
patch
svelte
editorconfig
npmrc
prettierignore
snap

scoping details...
  • 21 extensions are included in analyses: tsx, ts, js, md, json, mdx, yml, mjs, html, yaml, gitignore, txt, patch, css, svelte, sh, editorconfig, npmrc, svg, prettierignore, snap
  • 8 criteria are used to exclude files from analysis:
    • exclude files with path like ".*\.d\.ts" (Typescript definition files) (7 files).
    • exclude files with path like ".*/docs/.*" (Documentation) (11 files).
    • exclude files with path like ".*/react(-[^.]*)?\.js" (React) (1 file).
    • 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.
main33810 LOC (44%) 504 files
test9821 LOC (12%) 105 files
generated10673 LOC (14%) 188 files
build and deployment514 LOC (<1%) 22 files
other20926 LOC (27%) 162 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
mjs
svelte
Explore:   circles  |  sunburst

ts18293 LOC (54%) 265 files
tsx12180 LOC (36%) 160 files
js1431 LOC (4%) 58 files
html1078 LOC (3%) 3 files
mjs416 LOC (1%) 15 files
svelte304 LOC (<1%) 1 file
yaml108 LOC (<1%) 2 files

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 504 files match defined criteria (33,810 LOC, 100.0% vs. main code):
    • 265 ts files (18,293 LOC)
    • 160 tsx files (12,180 LOC)
    • 58 js files (1,431 LOC)
    • 3 html files (1,078 LOC)
    • 15 mjs files (416 LOC)
    • 1 svelte files (304 LOC)
    • 2 yaml files (108 LOC)
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
snap
Explore:   circles  |  sunburst

ts7711 LOC (78%) 57 files
js1439 LOC (14%) 46 files
snap558 LOC (5%) 1 file
tsx113 LOC (1%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*__tests__.*".
    • files with paths like ".*[.]spec[.]js".
    • files with paths like ".*/e2e/.*".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*[.]snap".
  • 105 files match defined criteria (9,821 LOC, 29.0% vs. main code):
    • 57 ts files (7,711 LOC)
    • 46 js files (1,439 LOC)
    • 1 snap files (558 LOC)
    • 1 tsx files (113 LOC)
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst

tsx7136 LOC (66%) 181 files
ts1787 LOC (16%) 5 files
css1741 LOC (16%) 1 file
md9 LOC (<1%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*/__generated__/.*".
  • 188 files match defined criteria (10,673 LOC, 31.6% vs. main code):
    • 181 tsx files (7,136 LOC)
    • 5 ts files (1,787 LOC)
    • 1 css files (1,741 LOC)
    • 1 md files (9 LOC)
Build and Deployment Code
Source code used to configure or support build and deployment process.
editorconfig
npmrc
prettierignore
Explore:   circles  |  sunburst

yaml454 LOC (88%) 15 files
gitignore28 LOC (5%) 3 files
editorconfig18 LOC (3%) 1 file
npmrc7 LOC (1%) 1 file
prettierignore5 LOC (<1%) 1 file
sh2 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 "(.*/)?[.]babelrc([.].*)?".
    • files with paths like ".*[.]npmrc".
    • files with paths like "(.*/)?[.]npmrc".
    • files with paths like ".*/[.]prettierignore".
    • files with paths like "(.*/)?[.]prettierignore".
    • files with paths like ".*[.]editorconfig".
    • files with paths like "(.*/)?[.]editorconfig".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/[.]github/workflows/.*[.]ya?ml".
    • files with paths like ".*/[.]github/actions/.*[.]ya?ml".
    • files with paths like ".*/action[.]ya?ml".
    • files with paths like "(.*/)?[.](idea|vscode|vs|gradle|mvn|settings|metadata|circleci)/.*".
    • files with paths like ".*/pnpm.*[.]ya?ml".
  • 22 files match defined criteria (514 LOC, 1.5% vs. main code):
    • 15 yaml files (454 LOC)
    • 3 gitignore files (28 LOC)
    • 1 editorconfig files (18 LOC)
    • 1 npmrc files (7 LOC)
    • 1 prettierignore files (5 LOC)
    • 1 sh files (2 LOC)
Other Code
mdx
patch
Explore:   circles  |  sunburst

json14890 LOC (71%) 63 files
md5384 LOC (25%) 81 files
mdx514 LOC (2%) 15 files
svg108 LOC (<1%) 1 file
patch30 LOC (<1%) 2 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 ".*[.]patch".
    • files with paths like ".*[.]mdx".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]txt".
  • 162 files match defined criteria (20,926 LOC, 61.9% vs. main code):
    • 63 json files (14,890 LOC)
    • 81 md files (5,384 LOC)
    • 15 mdx files (514 LOC)
    • 1 svg files (108 LOC)
    • 2 patch files (30 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
  • *.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
  • *.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
  • *.svelte 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