openai / openai-ruby
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
rbi
  • 9 extensions are included in analyses: rb, rbi, txt, yaml, md, gitignore, json, sh, gemspec
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.

main159339 LOC (91%) 2,046 files
test11241 LOC (6%) 101 files
generated0 LOC (0%) 0 files
build and deployment124 LOC (<1%) 4 files
other2873 LOC (1%) 42 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
rbi
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 2046 files match defined criteria (159,339 LOC, 100.0% vs. main code):
    • 1,036 *.rbi files (130,429 LOC)
    • 1,009 *.rb files (28,893 LOC)
    • 1 *.yaml files (17 LOC)
  • " *.rbi" is biggest, containing 81.86% of LOC.
  • " *.yaml" is smallest, containing 0.01% of LOC.


*.rbi130429 LOC (81%) 1,036 files
*.rb28893 LOC (18%) 1,009 files
*.yaml17 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/test_.*".
  • 101 files match defined criteria (11,241 LOC, 7.1% vs. main code). All matches are in *.rb files.


*.rb11241 LOC (100%) 101 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
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 ".*[.]gemspec".
    • files with paths like ".*[.]sh".
  • 4 files match defined criteria (124 LOC, 0.1% vs. main code):
    • 1 *.sh files (84 LOC)
    • 1 *.gemspec files (27 LOC)
    • 2 *.gitignore files (13 LOC)
  • " *.sh" is biggest, containing 67.74% of LOC.
  • " *.gitignore" is smallest, containing 10.48% of LOC.


*.sh84 LOC (67%) 1 file
*.gemspec27 LOC (21%) 1 file
*.gitignore13 LOC (10%) 2 files
Other Code
Explore:   circles  |  sunburst
  • 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 ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Ee]xamples/.*".
  • 42 files match defined criteria (2,873 LOC, 1.8% vs. main code):
    • 5 *.md files (1,673 LOC)
    • 23 *.rb files (735 LOC)
    • 12 *.txt files (392 LOC)
    • 2 *.json files (73 LOC)
  • " *.md" is biggest, containing 58.23% of LOC.
  • " *.json" is smallest, containing 2.54% of LOC.


*.md1673 LOC (58%) 5 files
*.rb735 LOC (25%) 23 files
*.txt392 LOC (13%) 12 files
*.json73 LOC (2%) 2 files
Analyzers
Info about analyzers used for source code examinations.
  • *.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
  • *.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


2026-06-24 10:39