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

scoping details...
  • 22 extensions are included in analyses: md, txt, py, json, patch, sh, yaml, rs, diff, toml, gitignore, yml, js, ts, gitattributes, html, dockerignore, css, tsx, ini, dockerfile, gitmodules
  • 7 criteria are used to exclude files from analysis:
    • exclude files with path like ".*/bin/.*" (Binaries for distribution) (23 files).
    • exclude files with path like ".*/docs/.*" (Documentation) (2 files).
    • 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.
main28545 LOC (14%) 296 files
test27656 LOC (13%) 243 files
generated0 LOC (0%) 0 files
build and deployment13166 LOC (6%) 124 files
other133193 LOC (65%) 1,594 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

py22742 LOC (79%) 173 files
rs3533 LOC (12%) 39 files
yaml1441 LOC (5%) 75 files
js514 LOC (1%) 3 files
css100 LOC (<1%) 1 file
html86 LOC (<1%) 3 files
tsx84 LOC (<1%) 1 file
toml45 LOC (<1%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 296 files match defined criteria (28,545 LOC, 100.0% vs. main code):
    • 173 py files (22,742 LOC)
    • 39 rs files (3,533 LOC)
    • 75 yaml files (1,441 LOC)
    • 3 js files (514 LOC)
    • 1 css files (100 LOC)
    • 3 html files (86 LOC)
    • 1 tsx files (84 LOC)
    • 1 toml files (45 LOC)
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
Explore:   circles  |  sunburst

py26730 LOC (96%) 227 files
js486 LOC (1%) 6 files
yaml217 LOC (<1%) 3 files
ts200 LOC (<1%) 4 files
sh22 LOC (<1%) 2 files
gitignore1 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 ".*/test[.].*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*_mock[.][a-zA-Z0-9_\-]+".
    • files with paths like ".*/testing[.].*".
  • 243 files match defined criteria (27,656 LOC, 96.9% vs. main code):
    • 227 py files (26,730 LOC)
    • 6 js files (486 LOC)
    • 3 yaml files (217 LOC)
    • 4 ts files (200 LOC)
    • 2 sh files (22 LOC)
    • 1 gitignore files (1 LOC)
Build and Deployment Code
Source code used to configure or support build and deployment process.
gitattributes
gitmodules
Explore:   circles  |  sunburst

sh10520 LOC (79%) 74 files
toml1075 LOC (8%) 20 files
gitignore922 LOC (7%) 12 files
yaml555 LOC (4%) 11 files
py44 LOC (<1%) 1 file
gitattributes24 LOC (<1%) 3 files
dockerignore20 LOC (<1%) 2 files
gitmodules6 LOC (<1%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*/pyproject[.]toml".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like "(.*/)?[.]dockerignore".
    • files with paths like ".*/Cargo[.]toml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]github/workflows/.*[.]ya?ml".
    • files with paths like ".*/requirements[a-zA-Z0-9._-]*[.]txt".
    • files with paths like ".*/setup[.]py".
    • files with paths like ".*/[.]gitattributes".
  • 124 files match defined criteria (13,166 LOC, 46.1% vs. main code):
    • 74 sh files (10,520 LOC)
    • 20 toml files (1,075 LOC)
    • 12 gitignore files (922 LOC)
    • 11 yaml files (555 LOC)
    • 1 py files (44 LOC)
    • 3 gitattributes files (24 LOC)
    • 2 dockerignore files (20 LOC)
    • 1 gitmodules files (6 LOC)
Other Code
patch
diff
ini
Explore:   circles  |  sunburst

json77408 LOC (58%) 40 files
md37912 LOC (28%) 632 files
patch13777 LOC (10%) 198 files
rs1480 LOC (1%) 14 files
diff1194 LOC (<1%) 41 files
txt935 LOC (<1%) 644 files
py180 LOC (<1%) 10 files
toml124 LOC (<1%) 6 files
sh119 LOC (<1%) 5 files
gitignore30 LOC (<1%) 2 files
yaml27 LOC (<1%) 1 file
ini7 LOC (<1%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]diff".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]patch".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]ini".
  • 1594 files match defined criteria (133,193 LOC, 466.6% vs. main code):
    • 40 json files (77,408 LOC)
    • 632 md files (37,912 LOC)
    • 198 patch files (13,777 LOC)
    • 14 rs files (1,480 LOC)
    • 41 diff files (1,194 LOC)
    • 644 txt files (935 LOC)
    • 10 py files (180 LOC)
    • 6 toml files (124 LOC)
    • 5 sh files (119 LOC)
    • 2 gitignore files (30 LOC)
    • 1 yaml files (27 LOC)
    • 1 ini files (7 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
  • *.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
  • *.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
  • *.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
  • *.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
  • *.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