openai / openai-cua-sample-app
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
mjs
  • 12 extensions are included in analyses: ts, json, tsx, md, css, js, html, mjs, yaml, svg, gitignore, txt
  • 4 criteria are used to exclude files from analysis:
    • exclude files with path like ".*/docs/.*" (Documentation) (3 files).
    • exclude files with path like ".*\.d\.ts" (Typescript definition files) (1 file).
    • 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).
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.

main8983 LOC (67%) 46 files
test917 LOC (6%) 8 files
generated0 LOC (0%) 0 files
build and deployment3009 LOC (22%) 3 files
other378 LOC (2%) 19 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 ".*".
  • 46 files match defined criteria (8,983 LOC, 100.0% vs. main code):
    • 27 *.ts files (4,528 LOC)
    • 4 *.css files (2,541 LOC)
    • 7 *.tsx files (942 LOC)
    • 3 *.js files (634 LOC)
    • 3 *.html files (266 LOC)
    • 2 *.mjs files (72 LOC)
  • " *.ts" is biggest, containing 50.41% of LOC.
  • " *.mjs" is smallest, containing 0.8% of LOC.


*.ts4528 LOC (50%) 27 files
*.css2541 LOC (28%) 4 files
*.tsx942 LOC (10%) 7 files
*.js634 LOC (7%) 3 files
*.html266 LOC (2%) 3 files
*.mjs72 LOC (<1%) 2 files
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 ".*/vitest[.].*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*/[Tt]est/.*".
  • 8 files match defined criteria (917 LOC, 10.2% vs. main code):
    • 7 *.ts files (811 LOC)
    • 1 *.tsx files (106 LOC)
  • " *.ts" is biggest, containing 88.44% of LOC.
  • " *.tsx" is smallest, containing 11.56% of LOC.


*.ts811 LOC (88%) 7 files
*.tsx106 LOC (11%) 1 file
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 ".*/package[.]json".
    • files with paths like ".*/pnpm.*[.]ya?ml".
  • 3 files match defined criteria (3,009 LOC, 33.5% vs. main code):
    • 2 *.yaml files (2,999 LOC)
    • 1 *.gitignore files (10 LOC)
  • " *.yaml" is biggest, containing 99.67% of LOC.
  • " *.gitignore" is smallest, containing 0.33% of LOC.


*.yaml2999 LOC (99%) 2 files
*.gitignore10 LOC (<1%) 1 file
Other Code
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]txt".
  • 19 files match defined criteria (378 LOC, 4.2% vs. main code):
    • 14 *.json files (251 LOC)
    • 4 *.md files (120 LOC)
    • 1 *.svg files (7 LOC)
  • " *.json" is biggest, containing 66.4% of LOC.
  • " *.svg" is smallest, containing 1.85% of LOC.


*.json251 LOC (66%) 14 files
*.md120 LOC (31%) 4 files
*.svg7 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
  • *.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
  • *.tsx 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
  • *.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
  • *.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
  • *.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:38