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
patch
nix
proto
gitattributes
tpl
prettierignore
spec
jsonl
editorconfig
npmrc
in
el
plist
policy
cfg
mjs
  • 38 extensions are included in analyses: rs, ts, snap, txt, json, md, toml, py, yaml, sql, sh, patch, bzl, ps1, c, gitignore, svg, h, js, xml, html, nix, proto, gitattributes, tpl, prettierignore, spec, jsonl, editorconfig, ipynb, npmrc, in, el, plist, policy, cfg, cjs, mjs
  • 5 criteria are used to exclude files from analysis:
    • exclude files with path like ".*/docs/.*" (Documentation) (21 files).
    • exclude files with path like ".*/bin/.*" (Binaries for distribution) (25 files).
    • exclude files with path like ".*/(3rd|[Tt]hird)[-_]?[Pp]arty/.*" (Dependencies) (1 file).
    • exclude files with path like ".*/cache/.*" (Caches) (2 files).
    • exclude files with path like ".*/[Vv]endors?/.*" (Dependencies) (36 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.

main552164 LOC (55%) 1,833 files
test312467 LOC (31%) 1,286 files
generated9914 LOC (1%) 603 files
build and deployment12868 LOC (1%) 175 files
other102962 LOC (10%) 986 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 ".*".
  • 1833 files match defined criteria (552,164 LOC, 100.0% vs. main code):
    • 1,684 *.rs files (535,585 LOC)
    • 55 *.py files (11,021 LOC)
    • 6 *.ps1 files (1,600 LOC)
    • 13 *.ts files (1,382 LOC)
    • 1 *.ipynb files (543 LOC)
    • 3 *.html files (534 LOC)
    • 43 *.sql files (528 LOC)
    • 2 *.tpl files (263 LOC)
    • 13 *.toml files (208 LOC)
    • 1 *.policy files (188 LOC)
    • 2 *.nix files (135 LOC)
    • 2 *.proto files (90 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 97% of LOC.
  • " *.h" is smallest, containing 0% of LOC.


*.rs535585 LOC (96%) 1,684 files
*.py11021 LOC (1%) 55 files
*.ps11600 LOC (<1%) 6 files
*.ts1382 LOC (<1%) 13 files
*.ipynb543 LOC (<1%) 1 file
*.html534 LOC (<1%) 3 files
*.sql528 LOC (<1%) 43 files
*.tpl263 LOC (<1%) 2 files
*.toml208 LOC (<1%) 13 files
*.policy188 LOC (<1%) 1 file
*.nix135 LOC (<1%) 2 files
*.proto90 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 ".*_tests[.].*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*[.]snap".
    • files with paths like ".*__tests__.*".
  • 1286 files match defined criteria (312,467 LOC, 56.6% vs. main code):
    • 671 *.rs files (297,463 LOC)
    • 574 *.snap files (7,539 LOC)
    • 26 *.py files (5,726 LOC)
    • 8 *.ts files (1,529 LOC)
    • 4 *.toml files (144 LOC)
    • 1 *.sh files (35 LOC)
    • 1 *.cjs files (30 LOC)
    • 1 *.gitattributes files (1 LOC)
  • " *.rs" is biggest, containing 95.2% of LOC.
  • " *.gitattributes" is smallest, containing 0% of LOC.


*.rs297463 LOC (95%) 671 files
*.snap7539 LOC (2%) 574 files
*.py5726 LOC (1%) 26 files
*.ts1529 LOC (<1%) 8 files
*.toml144 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 .*".
  • 603 files match defined criteria (9,914 LOC, 1.8% vs. main code):
    • 3 *.py files (7,269 LOC)
    • 580 *.ts files (1,427 LOC)
    • 20 *.json files (1,218 LOC)
  • " *.py" is biggest, containing 73.32% of LOC.
  • " *.json" is smallest, containing 12.29% of LOC.


*.py7269 LOC (73%) 3 files
*.ts1427 LOC (14%) 580 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 "(.*/)?[.]prettierrc([.].*)?".
    • files with paths like ".*[.]bzl".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/Cargo[.]toml".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/[.]prettierignore".
    • files with paths like "(.*/)?[.]prettierignore".
    • files with paths like ".*/pyproject[.]toml".
    • files with paths like ".*/[.]github/actions/.*[.]ya?ml".
    • files with paths like ".*/action[.]ya?ml".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*/pnpm.*[.]ya?ml".
    • files with paths like "(.*/)?[.](idea|vscode|vs|gradle|mvn|settings|metadata|circleci)/.*".
    • files with paths like ".*[.]npmrc".
    • files with paths like "(.*/)?[.]npmrc".
    • files with paths like ".*/setup[.]py".
    • files with paths like ".*[.]editorconfig".
    • files with paths like "(.*/)?[.]editorconfig".
  • 175 files match defined criteria (12,868 LOC, 2.3% vs. main code):
    • 129 *.toml files (4,479 LOC)
    • 5 *.yaml files (4,447 LOC)
    • 24 *.sh files (2,856 LOC)
    • 7 *.bzl files (939 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)
  • " *.toml" is biggest, containing 34.81% of LOC.
  • " *.gitattributes" is smallest, containing 0.02% of LOC.


*.toml4479 LOC (34%) 129 files
*.yaml4447 LOC (34%) 5 files
*.sh2856 LOC (22%) 24 files
*.bzl939 LOC (7%) 7 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
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 ".*[.]patch".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]plist".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/vendor/.*".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]svg".
  • 986 files match defined criteria (102,962 LOC, 18.6% vs. main code):
    • 310 *.json files (78,757 LOC)
    • 144 *.md files (9,658 LOC)
    • 442 *.txt files (6,575 LOC)
    • 42 *.py files (4,116 LOC)
    • 31 *.patch files (2,971 LOC)
    • 1 *.mjs files (521 LOC)
    • 3 *.rs files (180 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 76.49% of LOC.
  • " *.svg" is smallest, containing 0.01% of LOC.


*.json78757 LOC (76%) 310 files
*.md9658 LOC (9%) 144 files
*.txt6575 LOC (6%) 442 files
*.py4116 LOC (3%) 42 files
*.patch2971 LOC (2%) 31 files
*.mjs521 LOC (<1%) 1 file
*.rs180 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.
  • *.rs files are analyzed with RustAnalyzer:
    • 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
  • *.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
  • *.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
  • *.ipynb 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
  • *.sql files are analyzed with SqlAnalyzer:
    • 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
  • *.tpl 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
  • *.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
  • *.policy 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
  • *.nix 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
  • *.proto 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
  • *.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
  • *.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
  • *.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
  • *.h files are analyzed with CppAnalyzer:
    • 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


2026-06-24 10:40