Source Code Analysis Scope
Files includes and excluded from analyses
mdx
editorconfig
prettierignore

scoping details...
  • 15 extensions are included in analyses: ts, tsx, mdx, css, json, md, yml, js, txt, yaml, gitignore, sh, editorconfig, html, prettierignore
  • 7 criteria are used to exclude files from analysis:
    • exclude files with path like ".*/docs/.*" (Documentation) (14 files).
    • exclude files with path like ".*/git[-]commit[-]trailers[.]txt" (Git history trailers) (1 file).
    • exclude files with path like ".*\.d\.ts" (Typescript definition files) (2 files).
    • 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.
main40791 LOC (65%) 479 files
test798 LOC (1%) 10 files
generated0 LOC (0%) 0 files
build and deployment698 LOC (1%) 12 files
other19974 LOC (32%) 121 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
Explore:   circles  |  sunburst

ts22375 LOC (54%) 270 files
tsx15409 LOC (37%) 143 files
css2809 LOC (6%) 60 files
js138 LOC (<1%) 4 files
yaml48 LOC (<1%) 1 file
html12 LOC (<1%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 479 files match defined criteria (40,791 LOC, 100.0% vs. main code):
    • 270 ts files (22,375 LOC)
    • 143 tsx files (15,409 LOC)
    • 60 css files (2,809 LOC)
    • 4 js files (138 LOC)
    • 1 yaml files (48 LOC)
    • 1 html files (12 LOC)
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
Explore:   circles  |  sunburst

ts555 LOC (69%) 7 files
tsx233 LOC (29%) 2 files
js10 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 ".*[.]spec[.]tsx".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
  • 10 files match defined criteria (798 LOC, 2.0% vs. main code):
    • 7 ts files (555 LOC)
    • 2 tsx files (233 LOC)
    • 1 js files (10 LOC)
Build and Deployment Code
Source code used to configure or support build and deployment process.
editorconfig
prettierignore
Explore:   circles  |  sunburst

yaml459 LOC (65%) 8 files
sh196 LOC (28%) 1 file
editorconfig18 LOC (2%) 1 file
gitignore17 LOC (2%) 1 file
prettierignore8 LOC (1%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*/[.]prettierignore".
    • files with paths like "(.*/)?[.]prettierignore".
    • files with paths like ".*[.]editorconfig".
    • files with paths like "(.*/)?[.]editorconfig".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/[.]github/workflows/.*[.]ya?ml".
    • files with paths like ".*/pnpm.*[.]ya?ml".
  • 12 files match defined criteria (698 LOC, 1.7% vs. main code):
    • 8 yaml files (459 LOC)
    • 1 sh files (196 LOC)
    • 1 editorconfig files (18 LOC)
    • 1 gitignore files (17 LOC)
    • 1 prettierignore files (8 LOC)
Other Code
mdx
Explore:   circles  |  sunburst

json11739 LOC (58%) 54 files
mdx7342 LOC (36%) 58 files
md893 LOC (4%) 9 files

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 ".*[.]mdx".
    • files with paths like ".*[.]txt".
  • 121 files match defined criteria (19,974 LOC, 49.0% vs. main code):
    • 54 json files (11,739 LOC)
    • 58 mdx files (7,342 LOC)
    • 9 md files (893 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
  • *.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
  • *.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
  • *.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