azure / azure-functions-dotnet-worker
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
props
proto
txt
editorconfig
nuspec
http
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.

main20735 LOC (41%) 522 files
test24826 LOC (50%) 234 files
generated0 LOC (0%) 0 files
build and deployment765 LOC (1%) 32 files
other3234 LOC (6%) 141 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
targets
props
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 522 files match defined criteria (20,735 LOC, 100.0% vs. main code):
    • 497 *.cs files (19,058 LOC)
    • 4 *.proto files (699 LOC)
    • 6 *.ps1 files (485 LOC)
    • 8 *.targets files (382 LOC)
    • 7 *.props files (111 LOC)
  • " *.cs" is biggest, containing 91.91% of LOC.
  • " *.props" is smallest, containing 0.54% of LOC.


*.cs19058 LOC (91%) 497 files
*.proto699 LOC (3%) 4 files
*.ps1485 LOC (2%) 6 files
*.targets382 LOC (1%) 8 files
*.props111 LOC (<1%) 7 files
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 ".*/test[.].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[.][Tt]ests/.*".
    • files with paths like ".*[.][Tt]ests[.].*".
  • 234 files match defined criteria (24,826 LOC, 119.7% vs. main code):
    • 211 *.cs files (24,221 LOC)
    • 23 *.csproj files (605 LOC)
  • " *.cs" is biggest, containing 97.56% of LOC.
  • " *.csproj" is smallest, containing 2.44% of LOC.


*.cs24221 LOC (97%) 211 files
*.csproj605 LOC (2%) 23 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
csproj
nuspec
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 ".*[.]nuspec".
  • 32 files match defined criteria (765 LOC, 3.7% vs. main code):
    • 31 *.csproj files (740 LOC)
    • 1 *.nuspec files (25 LOC)
  • " *.csproj" is biggest, containing 96.73% of LOC.
  • " *.nuspec" is smallest, containing 3.27% of LOC.


*.csproj740 LOC (96%) 31 files
*.nuspec25 LOC (3%) 1 file
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 ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*[.]editorconfig".
  • 141 files match defined criteria (3,234 LOC, 15.6% vs. main code):
    • 58 *.cs files (2,121 LOC)
    • 38 *.md files (548 LOC)
    • 32 *.json files (368 LOC)
    • 10 *.csproj files (162 LOC)
    • 1 *.http files (15 LOC)
    • 1 *.txt files (11 LOC)
    • 1 *.props files (9 LOC)
  • " *.cs" is biggest, containing 65.58% of LOC.
  • " *.props" is smallest, containing 0.28% of LOC.


*.cs2121 LOC (65%) 58 files
*.md548 LOC (16%) 38 files
*.json368 LOC (11%) 32 files
*.csproj162 LOC (5%) 10 files
*.http15 LOC (<1%) 1 file
*.txt11 LOC (<1%) 1 file
*.props9 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 22:04