Source Code Analysis Scope
Files includes and excluded from analyses
mjs
patch
gitattributes
gitmodules

scoping details...
  • 14 extensions are included in analyses: mjs, patch, ts, json, md, cxx, py, txt, gitignore, ps1, yaml, hxx, gitattributes, gitmodules
  • 8 criteria are used to exclude files from analysis:
    • exclude files with path like ".*/docs/.*" (Documentation) (2 files).
    • exclude files with path like ".*\.d\.ts" (Typescript definition files) (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.
main9091 LOC (38%) 114 files
test7813 LOC (33%) 82 files
generated0 LOC (0%) 0 files
build and deployment1561 LOC (6%) 6 files
other4881 LOC (20%) 110 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

mjs5053 LOC (55%) 74 files
ts2830 LOC (31%) 32 files
cxx799 LOC (8%) 2 files
py312 LOC (3%) 3 files
ps151 LOC (<1%) 2 files
hxx46 LOC (<1%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 114 files match defined criteria (9,091 LOC, 100.0% vs. main code):
    • 74 mjs files (5,053 LOC)
    • 32 ts files (2,830 LOC)
    • 2 cxx files (799 LOC)
    • 3 py files (312 LOC)
    • 2 ps1 files (51 LOC)
    • 1 hxx files (46 LOC)
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
mjs
Explore:   circles  |  sunburst

mjs3938 LOC (50%) 50 files
ts3812 LOC (48%) 31 files
cxx63 LOC (<1%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[.]spec[.]ts".
    • files with paths like ".*/vitest[.].*".
  • 82 files match defined criteria (7,813 LOC, 85.9% vs. main code):
    • 50 mjs files (3,938 LOC)
    • 31 ts files (3,812 LOC)
    • 1 cxx files (63 LOC)
Build and Deployment Code
Source code used to configure or support build and deployment process.
gitmodules
gitattributes
Explore:   circles  |  sunburst

yaml1527 LOC (97%) 2 files
gitignore28 LOC (1%) 2 files
gitmodules4 LOC (<1%) 1 file
gitattributes2 LOC (<1%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*/pnpm.*[.]ya?ml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/[.]gitattributes".
  • 6 files match defined criteria (1,561 LOC, 17.2% vs. main code):
    • 2 yaml files (1,527 LOC)
    • 2 gitignore files (28 LOC)
    • 1 gitmodules files (4 LOC)
    • 1 gitattributes files (2 LOC)
Other Code
patch
Explore:   circles  |  sunburst

patch3907 LOC (80%) 81 files
json512 LOC (10%) 19 files
md462 LOC (9%) 10 files

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]patch".
  • 110 files match defined criteria (4,881 LOC, 53.7% vs. main code):
    • 81 patch files (3,907 LOC)
    • 19 json files (512 LOC)
    • 10 md files (462 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...
  • *.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
  • *.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
  • *.cxx files are analyzed with CppAnalyzer:
    • 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
  • *.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
  • *.ps1 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
  • *.hxx files are analyzed with CppAnalyzer:
    • 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