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

scoping details...
  • 17 extensions are included in analyses: rb, rbi, txt, md, yml, py, json, cjs, mjs, gitignore, js, html, css, gitattributes, toml, gemspec, yaml
  • 6 criteria are used to exclude files from analysis:
    • exclude files with path like ".*/docs/.*" (Documentation) (1 file).
    • 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.
main253993 LOC (77%) 3,221 files
test62447 LOC (19%) 338 files
generated4 LOC (<1%) 1 file
build and deployment1102 LOC (<1%) 14 files
other10609 LOC (3%) 111 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

rbi195432 LOC (76%) 1,615 files
rb56926 LOC (22%) 1,593 files
py1385 LOC (<1%) 3 files
cjs130 LOC (<1%) 4 files
yaml117 LOC (<1%) 5 files
toml3 LOC (<1%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 3221 files match defined criteria (253,993 LOC, 100.0% vs. main code):
    • 1,615 rbi files (195,432 LOC)
    • 1,593 rb files (56,926 LOC)
    • 3 py files (1,385 LOC)
    • 4 cjs files (130 LOC)
    • 5 yaml files (117 LOC)
    • 1 toml files (3 LOC)
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
mjs
Explore:   circles  |  sunburst

rb60352 LOC (96%) 330 files
py1494 LOC (2%) 4 files
mjs340 LOC (<1%) 1 file
cjs176 LOC (<1%) 2 files
yaml85 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 ".*/test[.].*".
  • 338 files match defined criteria (62,447 LOC, 24.6% vs. main code):
    • 330 rb files (60,352 LOC)
    • 4 py files (1,494 LOC)
    • 1 mjs files (340 LOC)
    • 2 cjs files (176 LOC)
    • 1 yaml files (85 LOC)
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst

yaml4 LOC (100%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*[.]generated[.][a-zA-Z]+".
  • 1 file matches defined criteria (4 LOC, 0.0% vs. main code). All matches are in yaml files.
Build and Deployment Code
Source code used to configure or support build and deployment process.
gitattributes
Explore:   circles  |  sunburst

yaml1031 LOC (93%) 10 files
gemspec55 LOC (4%) 1 file
gitignore15 LOC (1%) 2 files
gitattributes1 LOC (<1%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*/[.]github/workflows/.*[.]ya?ml".
    • files with paths like "(.*/)?[.]rubocop[.]yml".
    • files with paths like ".*[.]gemspec".
  • 14 files match defined criteria (1,102 LOC, 0.4% vs. main code):
    • 10 yaml files (1,031 LOC)
    • 1 gemspec files (55 LOC)
    • 2 gitignore files (15 LOC)
    • 1 gitattributes files (1 LOC)
Other Code
mjs
Explore:   circles  |  sunburst

md5578 LOC (52%) 25 files
rb2693 LOC (25%) 43 files
json968 LOC (9%) 7 files
txt575 LOC (5%) 25 files
mjs385 LOC (3%) 3 files
js183 LOC (1%) 2 files
yaml131 LOC (1%) 1 file
html45 LOC (<1%) 2 files
rbi36 LOC (<1%) 2 files
css15 LOC (<1%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
  • 111 files match defined criteria (10,609 LOC, 4.2% vs. main code):
    • 25 md files (5,578 LOC)
    • 43 rb files (2,693 LOC)
    • 7 json files (968 LOC)
    • 25 txt files (575 LOC)
    • 3 mjs files (385 LOC)
    • 2 js files (183 LOC)
    • 1 yaml files (131 LOC)
    • 2 html files (45 LOC)
    • 2 rbi files (36 LOC)
    • 1 css files (15 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...
  • *.rbi files are analyzed with RubyAnalyzer:
    • 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
    • Basic heuristic dependency analysis
  • *.rb files are analyzed with RubyAnalyzer:
    • 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
    • Basic 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
  • *.cjs 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
  • *.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