Source Code Analysis Scope
Files includes and excluded from analyses

scoping details...
  • 11 extensions are included in analyses: js, html, md, css, yaml, json, txt, ts, jsx, gitignore, sh
  • 7 criteria are used to exclude files from analysis:
    • exclude files with path like ".*\.d\.ts" (Typescript definition files) (3 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 ".*/_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.
main3304 LOC (18%) 21 files
test6510 LOC (35%) 45 files
generated2948 LOC (16%) 1 file
build and deployment88 LOC (<1%) 7 files
other5335 LOC (29%) 27 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

js2990 LOC (90%) 13 files
html160 LOC (4%) 6 files
css92 LOC (2%) 1 file
jsx62 LOC (1%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 21 files match defined criteria (3,304 LOC, 100.0% vs. main code):
    • 13 js files (2,990 LOC)
    • 6 html files (160 LOC)
    • 1 css files (92 LOC)
    • 1 jsx files (62 LOC)
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
Explore:   circles  |  sunburst

js6107 LOC (93%) 22 files
html378 LOC (5%) 21 files
yaml19 LOC (<1%) 1 file
css6 LOC (<1%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/test[.].*".
  • 45 files match defined criteria (6,510 LOC, 197.0% vs. main code):
    • 22 js files (6,107 LOC)
    • 21 html files (378 LOC)
    • 1 yaml files (19 LOC)
    • 1 css files (6 LOC)
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst

json2948 LOC (100%) 1 file

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

yaml54 LOC (61%) 5 files
sh22 LOC (25%) 1 file
gitignore12 LOC (13%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/[.]github/workflows/.*[.]ya?ml".
  • 7 files match defined criteria (88 LOC, 2.7% vs. main code):
    • 5 yaml files (54 LOC)
    • 1 sh files (22 LOC)
    • 1 gitignore files (12 LOC)
Other Code
Explore:   circles  |  sunburst

json3079 LOC (57%) 4 files
md1904 LOC (35%) 10 files
css155 LOC (2%) 4 files
html90 LOC (1%) 3 files
js86 LOC (1%) 5 files
jsx21 LOC (<1%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]json".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
  • 27 files match defined criteria (5,335 LOC, 161.5% vs. main code):
    • 4 json files (3,079 LOC)
    • 10 md files (1,904 LOC)
    • 4 css files (155 LOC)
    • 3 html files (90 LOC)
    • 5 js files (86 LOC)
    • 1 jsx files (21 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...
  • *.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
  • *.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
  • *.jsx 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