openai / tunnel-client
Source Code Overview

Analysis scope, overview of main, test, generated, deployment, build, and other code.

Source Code Analysis Scope
Files includes and excluded from analyses
svelte
mjs
mod
gitattributes
cmd
  • 22 extensions are included in analyses: go, md, ts, py, sh, svelte, json, txt, mjs, svg, css, html, yaml, gitignore, js, ps1, toml, mod, dockerignore, gitattributes, cjs, cmd
  • 4 criteria are used to exclude files from analysis:
    • 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) (0 files).
    • exclude files with path like ".*/docs/.*" (Documentation) (27 files).
    • exclude files with path like ".*/testdata/.*" (Test data) (2 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.

  • 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.

main36710 LOC (48%) 173 files
test34876 LOC (45%) 137 files
generated45 LOC (<1%) 1 file
build and deployment2532 LOC (3%) 18 files
other1855 LOC (2%) 29 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
svelte
mjs
cmd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 173 files match defined criteria (36,710 LOC, 100.0% vs. main code):
    • 130 *.go files (30,234 LOC)
    • 9 *.svelte files (2,421 LOC)
    • 10 *.ts files (1,117 LOC)
    • 11 *.py files (1,050 LOC)
    • 1 *.cjs files (851 LOC)
    • 1 *.css files (552 LOC)
    • 2 *.ps1 files (299 LOC)
    • 3 *.mjs files (109 LOC)
    • 3 *.html files (41 LOC)
    • 1 *.toml files (27 LOC)
    • 1 *.cmd files (5 LOC)
    • 1 *.js files (4 LOC)
  • " *.go" is biggest, containing 82.36% of LOC.
  • " *.js" is smallest, containing 0.01% of LOC.


*.go30234 LOC (82%) 130 files
*.svelte2421 LOC (6%) 9 files
*.ts1117 LOC (3%) 10 files
*.py1050 LOC (2%) 11 files
*.cjs851 LOC (2%) 1 file
*.css552 LOC (1%) 1 file
*.ps1299 LOC (<1%) 2 files
*.mjs109 LOC (<1%) 3 files
*.html41 LOC (<1%) 3 files
*.toml27 LOC (<1%) 1 file
*.cmd5 LOC (<1%) 1 file
*.js4 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
mjs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/e2e/.*".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*__tests__.*".
    • files with paths like ".*/vitest[.].*".
  • 137 files match defined criteria (34,876 LOC, 95.0% vs. main code):
    • 120 *.go files (33,598 LOC)
    • 12 *.ts files (931 LOC)
    • 3 *.sh files (127 LOC)
    • 1 *.mjs files (117 LOC)
    • 1 *.py files (103 LOC)
  • " *.go" is biggest, containing 96.34% of LOC.
  • " *.py" is smallest, containing 0.3% of LOC.


*.go33598 LOC (96%) 120 files
*.ts931 LOC (2%) 12 files
*.sh127 LOC (<1%) 3 files
*.mjs117 LOC (<1%) 1 file
*.py103 LOC (<1%) 1 file
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/generated/.*".
    • files with paths like ".*/package[-]lock[.]json".
  • 1 file matches defined criteria (45 LOC, 0.1% vs. main code). All matches are in *.json files.


*.json45 LOC (100%) 1 file
Build and Deployment Code
Source code used to configure or support build and deployment process.
mod
gitattributes
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like "(.*/)?[.]dockerignore".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*/pnpm.*[.]ya?ml".
    • files with paths like ".*/go[.]mod".
  • 18 files match defined criteria (2,532 LOC, 6.9% vs. main code):
    • 2 *.yaml files (1,267 LOC)
    • 11 *.sh files (1,192 LOC)
    • 1 *.mod files (59 LOC)
    • 2 *.gitignore files (7 LOC)
    • 1 *.dockerignore files (6 LOC)
    • 1 *.gitattributes files (1 LOC)
  • " *.yaml" is biggest, containing 50.04% of LOC.
  • " *.gitattributes" is smallest, containing 0.04% of LOC.


*.yaml1267 LOC (50%) 2 files
*.sh1192 LOC (47%) 11 files
*.mod59 LOC (2%) 1 file
*.gitignore7 LOC (<1%) 2 files
*.dockerignore6 LOC (<1%) 1 file
*.gitattributes1 LOC (<1%) 1 file
Other Code
mjs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]json".
  • 29 files match defined criteria (1,855 LOC, 5.1% vs. main code):
    • 10 *.md files (758 LOC)
    • 1 *.ts files (276 LOC)
    • 2 *.py files (271 LOC)
    • 6 *.txt files (266 LOC)
    • 7 *.json files (159 LOC)
    • 1 *.sh files (64 LOC)
    • 1 *.mjs files (53 LOC)
    • 1 *.toml files (8 LOC)
  • " *.md" is biggest, containing 40.86% of LOC.
  • " *.toml" is smallest, containing 0.43% of LOC.


*.md758 LOC (40%) 10 files
*.ts276 LOC (14%) 1 file
*.py271 LOC (14%) 2 files
*.txt266 LOC (14%) 6 files
*.json159 LOC (8%) 7 files
*.sh64 LOC (3%) 1 file
*.mjs53 LOC (2%) 1 file
*.toml8 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.
  • *.go files are analyzed with GoLangAnalyzer:
    • 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
  • *.svelte 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
  • *.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
  • *.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
  • *.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
  • *.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
  • *.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
  • *.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
  • *.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


2026-06-24 10:41