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

scoping details...
  • 18 extensions are included in analyses: mjs, json, md, ts, yaml, py, yml, txt, rs, svg, tsx, swift, jsonl, patch, gitignore, gitattributes, sql, toml
  • 10 criteria are used to exclude files from analysis:
    • exclude files with path like ".*/dist/.*" (Distributions) (42 files).
    • exclude files with path like ".*\.d\.ts" (Typescript definition files) (0 files).
    • exclude files with path like ".*/docs/.*" (Documentation) (23 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 ".*/[Vv]endors?/.*" (Dependencies) (2 files).
    • 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.
main29882 LOC (35%) 123 files
test22392 LOC (26%) 90 files
generated2543 LOC (2%) 2 files
build and deployment466 LOC (<1%) 11 files
other29898 LOC (35%) 139 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
mjs
jsonl
Explore:   circles  |  sunburst

mjs18011 LOC (60%) 51 files
ts7421 LOC (24%) 30 files
py3490 LOC (11%) 5 files
rs725 LOC (2%) 6 files
yaml152 LOC (<1%) 24 files
swift35 LOC (<1%) 3 files
tsx28 LOC (<1%) 3 files
jsonl20 LOC (<1%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 123 files match defined criteria (29,882 LOC, 100.0% vs. main code):
    • 51 mjs files (18,011 LOC)
    • 30 ts files (7,421 LOC)
    • 5 py files (3,490 LOC)
    • 6 rs files (725 LOC)
    • 24 yaml files (152 LOC)
    • 3 swift files (35 LOC)
    • 3 tsx files (28 LOC)
    • 1 jsonl files (20 LOC)
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
mjs
Explore:   circles  |  sunburst

mjs18968 LOC (84%) 76 files
py3022 LOC (13%) 5 files
yaml377 LOC (1%) 8 files
sql25 LOC (<1%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
  • 90 files match defined criteria (22,392 LOC, 74.9% vs. main code):
    • 76 mjs files (18,968 LOC)
    • 5 py files (3,022 LOC)
    • 8 yaml files (377 LOC)
    • 1 sql files (25 LOC)
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst

json2543 LOC (100%) 2 files

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

yaml390 LOC (83%) 7 files
toml35 LOC (7%) 1 file
gitattributes23 LOC (4%) 1 file
gitignore18 LOC (3%) 2 files

scope details...
  • The following criteria are used to filter files:
    • files with paths like "(.*/)?[.]prettierrc([.].*)?".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/Cargo[.]toml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]github/workflows/.*[.]ya?ml".
    • files with paths like ".*/[.]gitattributes".
  • 11 files match defined criteria (466 LOC, 1.6% vs. main code):
    • 7 yaml files (390 LOC)
    • 1 toml files (35 LOC)
    • 1 gitattributes files (23 LOC)
    • 2 gitignore files (18 LOC)
Other Code
patch
Explore:   circles  |  sunburst

json26633 LOC (89%) 85 files
md1939 LOC (6%) 46 files
txt1021 LOC (3%) 3 files
patch250 LOC (<1%) 1 file
svg55 LOC (<1%) 4 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 ".*[.]patch".
    • files with paths like ".*/vendor/.*".
  • 139 files match defined criteria (29,898 LOC, 100.1% vs. main code):
    • 85 json files (26,633 LOC)
    • 46 md files (1,939 LOC)
    • 3 txt files (1,021 LOC)
    • 1 patch files (250 LOC)
    • 4 svg files (55 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
  • *.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
  • *.rs 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
  • *.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
  • *.swift files are analyzed with SwiftAnalyzer:
    • 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
  • *.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