Source Code Analysis Scope
Files includes and excluded from analyses
mjs
sig
geojson
liquid
smk
npmignore
jsonl
npmrc
cmd

scoping details...
  • 31 extensions are included in analyses: md, yaml, py, json, mjs, svg, js, ts, txt, sh, tsx, html, css, sig, tf, jsx, gitignore, geojson, swift, liquid, smk, toml, cjs, r, pl, npmignore, jsonl, ps1, xml, npmrc, cmd
  • 7 criteria are used to exclude files from analysis:
    • exclude files with path like ".*\.d\.ts" (Typescript definition files) (2 files).
    • exclude files with path like ".*/prototype(.*)\.js" (Prototype) (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.
main185039 LOC (29%) 1,133 files
test21672 LOC (3%) 92 files
generated7374 LOC (1%) 4 files
build and deployment5431 LOC (<1%) 44 files
other416634 LOC (65%) 3,760 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
mjs
liquid
geojson
smk
cmd
jsonl
Explore:   circles  |  sunburst

py109798 LOC (59%) 336 files
mjs28431 LOC (15%) 80 files
js14017 LOC (7%) 60 files
css11320 LOC (6%) 19 files
tsx5397 LOC (2%) 23 files
cjs4194 LOC (2%) 2 files
yaml3494 LOC (1%) 534 files
ts2785 LOC (1%) 36 files
jsx1748 LOC (<1%) 6 files
html1093 LOC (<1%) 18 files
liquid1022 LOC (<1%) 3 files
geojson860 LOC (<1%) 4 files
swift479 LOC (<1%) 3 files
pl160 LOC (<1%) 2 files
smk133 LOC (<1%) 2 files
toml70 LOC (<1%) 1 file
cmd22 LOC (<1%) 1 file
ps111 LOC (<1%) 1 file
jsonl3 LOC (<1%) 1 file
xml2 LOC (<1%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1133 files match defined criteria (185,039 LOC, 100.0% vs. main code):
    • 336 py files (109,798 LOC)
    • 80 mjs files (28,431 LOC)
    • 60 js files (14,017 LOC)
    • 19 css files (11,320 LOC)
    • 23 tsx files (5,397 LOC)
    • 2 cjs files (4,194 LOC)
    • 534 yaml files (3,494 LOC)
    • 36 ts files (2,785 LOC)
    • 6 jsx files (1,748 LOC)
    • 18 html files (1,093 LOC)
    • 3 liquid files (1,022 LOC)
    • 4 geojson files (860 LOC)
    • 3 swift files (479 LOC)
    • 2 pl files (160 LOC)
    • 2 smk files (133 LOC)
    • 1 toml files (70 LOC)
    • 1 cmd files (22 LOC)
    • 1 ps1 files (11 LOC)
    • 1 jsonl files (3 LOC)
    • 1 xml files (2 LOC)
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
mjs
Explore:   circles  |  sunburst

mjs10650 LOC (49%) 30 files
py9192 LOC (42%) 51 files
js742 LOC (3%) 1 file
html615 LOC (2%) 4 files
ts244 LOC (1%) 3 files
tsx142 LOC (<1%) 1 file
css69 LOC (<1%) 1 file
sh18 LOC (<1%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*/testing[.].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
    • 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 ".*[.]spec[.]ts".
  • 92 files match defined criteria (21,672 LOC, 11.7% vs. main code):
    • 30 mjs files (10,650 LOC)
    • 51 py files (9,192 LOC)
    • 1 js files (742 LOC)
    • 4 html files (615 LOC)
    • 3 ts files (244 LOC)
    • 1 tsx files (142 LOC)
    • 1 css files (69 LOC)
    • 1 sh files (18 LOC)
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst

json7040 LOC (95%) 3 files
md334 LOC (4%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*/package[-]lock[.]json".
    • files with any line of content like "//[ ]*Generated by .*".
  • 4 files match defined criteria (7,374 LOC, 4.0% vs. main code):
    • 3 json files (7,040 LOC)
    • 1 md files (334 LOC)
Build and Deployment Code
Source code used to configure or support build and deployment process.
npmignore
npmrc
Explore:   circles  |  sunburst

sh4161 LOC (76%) 27 files
tf1221 LOC (22%) 8 files
gitignore26 LOC (<1%) 6 files
npmignore12 LOC (<1%) 1 file
toml8 LOC (<1%) 1 file
npmrc3 LOC (<1%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*[.]sh".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/pyproject[.]toml".
    • files with paths like ".*/requirements[a-zA-Z0-9._-]*[.]txt".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*[.]tf".
    • files with paths like ".*/[.]npmignore".
    • files with paths like "(.*/)?[.]npmignore".
    • files with paths like ".*[.]npmrc".
    • files with paths like "(.*/)?[.]npmrc".
  • 44 files match defined criteria (5,431 LOC, 2.9% vs. main code):
    • 27 sh files (4,161 LOC)
    • 8 tf files (1,221 LOC)
    • 6 gitignore files (26 LOC)
    • 1 npmignore files (12 LOC)
    • 1 toml files (8 LOC)
    • 1 npmrc files (3 LOC)
Other Code
Explore:   circles  |  sunburst

md350992 LOC (84%) 3,373 files
json63640 LOC (15%) 296 files
txt1331 LOC (<1%) 26 files
svg671 LOC (<1%) 65 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 ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 3760 files match defined criteria (416,634 LOC, 225.2% vs. main code):
    • 3,373 md files (350,992 LOC)
    • 296 json files (63,640 LOC)
    • 26 txt files (1,331 LOC)
    • 65 svg files (671 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
  • *.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
  • *.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
  • *.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
  • *.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
  • *.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
  • *.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
  • *.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
  • *.liquid 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
  • *.geojson 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
  • *.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
  • *.pl files are analyzed with PerlAnalyzer:
    • 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
  • *.smk 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
  • *.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
  • *.cmd 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
  • *.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
  • *.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
  • *.xml files are analyzed with XmlAnalyzer:
    • 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