openai / openai-node
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
snap
jsonl
editorconfig
babelrc
jsonc
mjs
prettierignore
  • 19 extensions are included in analyses: ts, json, md, cjs, yaml, js, gitignore, tsx, sh, snap, html, jsonl, editorconfig, babelrc, toml, jsonc, txt, mjs, prettierignore
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.

main34601 LOC (20%) 299 files
test21061 LOC (12%) 175 files
generated50636 LOC (29%) 12 files
build and deployment4322 LOC (2%) 7 files
other59424 LOC (34%) 130 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
mjs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 299 files match defined criteria (34,601 LOC, 100.0% vs. main code):
    • 292 *.ts files (34,297 LOC)
    • 6 *.cjs files (266 LOC)
    • 1 *.mjs files (38 LOC)
  • " *.ts" is biggest, containing 99.12% of LOC.
  • " *.mjs" is smallest, containing 0.11% of LOC.


*.ts34297 LOC (99%) 292 files
*.cjs266 LOC (<1%) 6 files
*.mjs38 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
snap
jsonc
editorconfig
babelrc
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*[.]snap".
    • files with paths like ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*_test[.].*".
  • 175 files match defined criteria (21,061 LOC, 60.9% vs. main code):
    • 144 *.ts files (20,358 LOC)
    • 6 *.js files (234 LOC)
    • 4 *.gitignore files (129 LOC)
    • 9 *.cjs files (108 LOC)
    • 2 *.snap files (100 LOC)
    • 4 *.tsx files (48 LOC)
    • 1 *.toml files (34 LOC)
    • 2 *.html files (21 LOC)
    • 1 *.jsonc files (11 LOC)
    • 1 *.editorconfig files (11 LOC)
    • 1 *.babelrc files (7 LOC)
  • " *.ts" is biggest, containing 96.66% of LOC.
  • " *.babelrc" is smallest, containing 0.03% of LOC.


*.ts20358 LOC (96%) 144 files
*.js234 LOC (1%) 6 files
*.gitignore129 LOC (<1%) 4 files
*.cjs108 LOC (<1%) 9 files
*.snap100 LOC (<1%) 2 files
*.tsx48 LOC (<1%) 4 files
*.toml34 LOC (<1%) 1 file
*.html21 LOC (<1%) 2 files
*.jsonc11 LOC (<1%) 1 file
*.editorconfig11 LOC (<1%) 1 file
*.babelrc7 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 ".*/package[-]lock[.]json".
  • 12 files match defined criteria (50,636 LOC, 146.3% vs. main code). All matches are in *.json files.


*.json50636 LOC (100%) 12 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
prettierignore
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 ".*/pnpm.*[.]ya?ml".
    • files with paths like "(.*/)?[.]prettierrc([.].*)?".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/[.]prettierignore".
    • files with paths like "(.*/)?[.]prettierignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like "(.*/)?[.]babelrc([.].*)?".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
    • files with paths like ".*[.]editorconfig".
    • files with paths like "(.*/)?[.]editorconfig".
  • 7 files match defined criteria (4,322 LOC, 12.5% vs. main code):
    • 2 *.yaml files (4,269 LOC)
    • 3 *.sh files (27 LOC)
    • 1 *.gitignore files (18 LOC)
    • 1 *.prettierignore files (8 LOC)
  • " *.yaml" is biggest, containing 98.77% of LOC.
  • " *.prettierignore" is smallest, containing 0.19% of LOC.


*.yaml4269 LOC (98%) 2 files
*.sh27 LOC (<1%) 3 files
*.gitignore18 LOC (<1%) 1 file
*.prettierignore8 LOC (<1%) 1 file
Other Code
jsonl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]json".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 130 files match defined criteria (59,424 LOC, 171.7% vs. main code):
    • 58 *.json files (52,152 LOC)
    • 23 *.md files (5,286 LOC)
    • 47 *.ts files (1,974 LOC)
    • 1 *.jsonl files (10 LOC)
    • 1 *.gitignore files (2 LOC)
  • " *.json" is biggest, containing 87.76% of LOC.
  • " *.gitignore" is smallest, containing 0% of LOC.


*.json52152 LOC (87%) 58 files
*.md5286 LOC (8%) 23 files
*.ts1974 LOC (3%) 47 files
*.jsonl10 LOC (<1%) 1 file
*.gitignore2 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.
  • *.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
  • *.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
  • *.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


2026-06-24 10:33