openai / codex
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
txt
patch
nix
proto
gitattributes
tpl
prettierignore
spec
jsonl
editorconfig
npmrc
in
el
plist
policy
cfg
mjs
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.

main513259 LOC (57%) 1,681 files
test266620 LOC (29%) 1,124 files
generated9831 LOC (1%) 568 files
build and deployment12305 LOC (1%) 164 files
other98129 LOC (10%) 972 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
tpl
policy
nix
proto
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1681 files match defined criteria (513,259 LOC, 100.0% vs. main code):
    • 1,538 *.rs files (497,606 LOC)
    • 53 *.py files (10,196 LOC)
    • 6 *.ps1 files (1,586 LOC)
    • 13 *.ts files (1,347 LOC)
    • 1 *.ipynb files (543 LOC)
    • 3 *.html files (534 LOC)
    • 39 *.sql files (493 LOC)
    • 2 *.tpl files (263 LOC)
    • 13 *.toml files (195 LOC)
    • 1 *.policy files (188 LOC)
    • 2 *.nix files (135 LOC)
    • 2 *.proto files (86 LOC)
    • 4 *.yaml files (53 LOC)
    • 1 *.js files (19 LOC)
    • 2 *.xml files (14 LOC)
    • 1 *.h files (1 LOC)
  • " *.rs" is biggest, containing 96.95% of LOC.
  • " *.h" is smallest, containing 0% of LOC.


*.rs497606 LOC (96%) 1,538 files
*.py10196 LOC (1%) 53 files
*.ps11586 LOC (<1%) 6 files
*.ts1347 LOC (<1%) 13 files
*.ipynb543 LOC (<1%) 1 file
*.html534 LOC (<1%) 3 files
*.sql493 LOC (<1%) 39 files
*.tpl263 LOC (<1%) 2 files
*.toml195 LOC (<1%) 13 files
*.policy188 LOC (<1%) 1 file
*.nix135 LOC (<1%) 2 files
*.proto86 LOC (<1%) 2 files
*.yaml53 LOC (<1%) 4 files
*.js19 LOC (<1%) 1 file
*.xml14 LOC (<1%) 2 files
*.h1 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
snap
gitattributes
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/test_.*".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*__tests__.*".
    • files with paths like ".*[.]snap".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
  • 1124 files match defined criteria (266,620 LOC, 51.9% vs. main code):
    • 547 *.rs files (252,560 LOC)
    • 538 *.snap files (6,956 LOC)
    • 24 *.py files (5,369 LOC)
    • 8 *.ts files (1,529 LOC)
    • 4 *.toml files (140 LOC)
    • 1 *.sh files (35 LOC)
    • 1 *.cjs files (30 LOC)
    • 1 *.gitattributes files (1 LOC)
  • " *.rs" is biggest, containing 94.73% of LOC.
  • " *.gitattributes" is smallest, containing 0% of LOC.


*.rs252560 LOC (94%) 547 files
*.snap6956 LOC (2%) 538 files
*.py5369 LOC (2%) 24 files
*.ts1529 LOC (<1%) 8 files
*.toml140 LOC (<1%) 4 files
*.sh35 LOC (<1%) 1 file
*.cjs30 LOC (<1%) 1 file
*.gitattributes1 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 any line of content like "// This file was generated .*".
  • 568 files match defined criteria (9,831 LOC, 1.9% vs. main code):
    • 3 *.py files (7,269 LOC)
    • 545 *.ts files (1,344 LOC)
    • 20 *.json files (1,218 LOC)
  • " *.py" is biggest, containing 73.94% of LOC.
  • " *.json" is smallest, containing 12.39% of LOC.


*.py7269 LOC (73%) 3 files
*.ts1344 LOC (13%) 545 files
*.json1218 LOC (12%) 20 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
prettierignore
npmrc
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 ".*[.]bzl".
    • files with paths like ".*/Cargo[.]toml".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/pnpm.*[.]ya?ml".
    • files with paths like ".*/package[.]json".
    • files with paths like "(.*/)?[.](idea|vscode|vs|gradle|mvn|settings|metadata|circleci)/.*".
    • files with paths like ".*/pyproject[.]toml".
    • files with paths like ".*[.]editorconfig".
    • files with paths like "(.*/)?[.]editorconfig".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*/[.]github/actions/.*[.]ya?ml".
    • files with paths like ".*/action[.]ya?ml".
    • files with paths like ".*[.]npmrc".
    • files with paths like "(.*/)?[.]npmrc".
    • files with paths like ".*/[.]prettierignore".
    • files with paths like "(.*/)?[.]prettierignore".
    • files with paths like ".*/setup[.]py".
    • files with paths like "(.*/)?[.]prettierrc([.].*)?".
  • 164 files match defined criteria (12,305 LOC, 2.4% vs. main code):
    • 5 *.yaml files (4,444 LOC)
    • 123 *.toml files (4,283 LOC)
    • 23 *.sh files (2,732 LOC)
    • 3 *.bzl files (699 LOC)
    • 5 *.gitignore files (85 LOC)
    • 1 *.py files (47 LOC)
    • 2 *.prettierignore files (9 LOC)
    • 1 *.npmrc files (4 LOC)
    • 1 *.gitattributes files (2 LOC)
  • " *.yaml" is biggest, containing 36.12% of LOC.
  • " *.gitattributes" is smallest, containing 0.02% of LOC.


*.yaml4444 LOC (36%) 5 files
*.toml4283 LOC (34%) 123 files
*.sh2732 LOC (22%) 23 files
*.bzl699 LOC (5%) 3 files
*.gitignore85 LOC (<1%) 5 files
*.py47 LOC (<1%) 1 file
*.prettierignore9 LOC (<1%) 2 files
*.npmrc4 LOC (<1%) 1 file
*.gitattributes2 LOC (<1%) 1 file
Other Code
txt
patch
mjs
plist
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 ".*/[Ee]xamples/.*".
    • files with paths like ".*/vendor/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]patch".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]plist".
  • 972 files match defined criteria (98,129 LOC, 19.1% vs. main code):
    • 300 *.json files (74,382 LOC)
    • 142 *.md files (9,326 LOC)
    • 442 *.txt files (6,575 LOC)
    • 42 *.py files (4,073 LOC)
    • 29 *.patch files (2,892 LOC)
    • 1 *.mjs files (521 LOC)
    • 3 *.rs files (176 LOC)
    • 1 *.js files (116 LOC)
    • 5 *.yaml files (35 LOC)
    • 4 *.ts files (19 LOC)
    • 1 *.plist files (8 LOC)
    • 2 *.svg files (6 LOC)
  • " *.json" is biggest, containing 75.8% of LOC.
  • " *.svg" is smallest, containing 0.01% of LOC.


*.json74382 LOC (75%) 300 files
*.md9326 LOC (9%) 142 files
*.txt6575 LOC (6%) 442 files
*.py4073 LOC (4%) 42 files
*.patch2892 LOC (2%) 29 files
*.mjs521 LOC (<1%) 1 file
*.rs176 LOC (<1%) 3 files
*.js116 LOC (<1%) 1 file
*.yaml35 LOC (<1%) 5 files
*.ts19 LOC (<1%) 4 files
*.plist8 LOC (<1%) 1 file
*.svg6 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2026-06-05 13:16