openai / openai-dotnet
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
csproj
targets
txt
editorconfig
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.

main28934 LOC (19%) 585 files
test14063 LOC (9%) 55 files
generated104275 LOC (68%) 1,336 files
build and deployment56 LOC (<1%) 1 file
other4624 LOC (3%) 64 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 585 files match defined criteria (28,934 LOC, 100.0% vs. main code). All matches are in *.cs files.


*.cs28934 LOC (100%) 585 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
csproj
targets
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[.][Tt]ests[.].*".
  • 55 files match defined criteria (14,063 LOC, 48.6% vs. main code):
    • 53 *.cs files (14,033 LOC)
    • 1 *.csproj files (23 LOC)
    • 1 *.targets files (7 LOC)
  • " *.cs" is biggest, containing 99.79% of LOC.
  • " *.targets" is smallest, containing 0.05% of LOC.


*.cs14033 LOC (99%) 53 files
*.csproj23 LOC (<1%) 1 file
*.targets7 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 ".*[.]cs" AND any line of content like "[/][/][ ]*".
  • 1336 files match defined criteria (104,275 LOC, 360.4% vs. main code). All matches are in *.cs files.


*.cs104275 LOC (100%) 1,336 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
csproj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]csproj".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 1 file matches defined criteria (56 LOC, 0.2% vs. main code). All matches are in *.csproj files.


*.csproj56 LOC (100%) 1 file
Other Code
csproj
targets
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]editorconfig".
  • 64 files match defined criteria (4,624 LOC, 16.0% vs. main code):
    • 58 *.cs files (3,172 LOC)
    • 3 *.md files (1,421 LOC)
    • 1 *.csproj files (18 LOC)
    • 1 *.targets files (7 LOC)
    • 1 *.json files (6 LOC)
  • " *.cs" is biggest, containing 68.6% of LOC.
  • " *.json" is smallest, containing 0.13% of LOC.


*.cs3172 LOC (68%) 58 files
*.md1421 LOC (30%) 3 files
*.csproj18 LOC (<1%) 1 file
*.targets7 LOC (<1%) 1 file
*.json6 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.
  • *.cs files are analyzed with CSharpAnalyzer:
    • 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 (based on namespace heuristics)


2025-05-04 14:12