azure / azure-functions-openai-extension
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
txt
http
props
targets
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.

main4369 LOC (15%) 97 files
test1178 LOC (4%) 10 files
generated6922 LOC (24%) 14 files
build and deployment281 LOC (1%) 9 files
other15221 LOC (54%) 322 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
props
targets
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 97 files match defined criteria (4,369 LOC, 100.0% vs. main code):
    • 76 *.cs files (3,866 LOC)
    • 18 *.java files (435 LOC)
    • 1 *.props files (47 LOC)
    • 1 *.ps1 files (16 LOC)
    • 1 *.targets files (5 LOC)
  • " *.cs" is biggest, containing 88.49% of LOC.
  • " *.targets" is smallest, containing 0.11% of LOC.


*.cs3866 LOC (88%) 76 files
*.java435 LOC (9%) 18 files
*.props47 LOC (1%) 1 file
*.ps116 LOC (<1%) 1 file
*.targets5 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
csproj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/UnitTests?/.*".
    • files with paths like ".*UnitTests[.][a-zA-Z0-9_]+".
  • 10 files match defined criteria (1,178 LOC, 27.0% vs. main code):
    • 8 *.cs files (1,134 LOC)
    • 2 *.csproj files (44 LOC)
  • " *.cs" is biggest, containing 96.26% of LOC.
  • " *.csproj" is smallest, containing 3.74% of LOC.


*.cs1134 LOC (96%) 8 files
*.csproj44 LOC (3%) 2 files
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 ".*/package[-]lock[.]json".
  • 14 files match defined criteria (6,922 LOC, 158.4% vs. main code). All matches are in *.json files.


*.json6922 LOC (100%) 14 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".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/pom[.]xml".
  • 9 files match defined criteria (281 LOC, 6.4% vs. main code):
    • 1 *.xml files (153 LOC)
    • 8 *.csproj files (128 LOC)
  • " *.xml" is biggest, containing 54.45% of LOC.
  • " *.csproj" is smallest, containing 45.55% of LOC.


*.xml153 LOC (54%) 1 file
*.csproj128 LOC (45%) 8 files
Other Code
csproj
http
txt
props
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 ".*/[.]gitignore".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]editorconfig".
  • 322 files match defined criteria (15,221 LOC, 348.4% vs. main code):
    • 157 *.json files (9,040 LOC)
    • 18 *.md files (1,359 LOC)
    • 26 *.cs files (1,052 LOC)
    • 9 *.java files (719 LOC)
    • 7 *.xml files (633 LOC)
    • 29 *.csproj files (622 LOC)
    • 9 *.ts files (458 LOC)
    • 9 *.js files (443 LOC)
    • 26 *.ps1 files (432 LOC)
    • 10 *.py files (293 LOC)
    • 7 *.http files (85 LOC)
    • 7 *.psd1 files (50 LOC)
    • 7 *.txt files (29 LOC)
    • 1 *.props files (6 LOC)
  • " *.json" is biggest, containing 59.39% of LOC.
  • " *.props" is smallest, containing 0.04% of LOC.


*.json9040 LOC (59%) 157 files
*.md1359 LOC (8%) 18 files
*.cs1052 LOC (6%) 26 files
*.java719 LOC (4%) 9 files
*.xml633 LOC (4%) 7 files
*.csproj622 LOC (4%) 29 files
*.ts458 LOC (3%) 9 files
*.js443 LOC (2%) 9 files
*.ps1432 LOC (2%) 26 files
*.py293 LOC (1%) 10 files
*.http85 LOC (<1%) 7 files
*.psd150 LOC (<1%) 7 files
*.txt29 LOC (<1%) 7 files
*.props6 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 23:01