elastic / elastic-otel-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
cshtml
txt
fs
props
http
cmd
editorconfig
dotsettings
fsproj
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.

main4105 LOC (55%) 71 files
test1621 LOC (21%) 26 files
generated0 LOC (0%) 0 files
build and deployment282 LOC (3%) 10 files
other1384 LOC (18%) 69 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
fs
props
cmd
fsproj
http
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 71 files match defined criteria (4,105 LOC, 100.0% vs. main code):
    • 58 *.cs files (3,394 LOC)
    • 5 *.fs files (545 LOC)
    • 4 *.props files (73 LOC)
    • 2 *.cmd files (57 LOC)
    • 1 *.fsproj files (32 LOC)
    • 1 *.http files (4 LOC)
  • " *.cs" is biggest, containing 82.68% of LOC.
  • " *.http" is smallest, containing 0.1% of LOC.


*.cs3394 LOC (82%) 58 files
*.fs545 LOC (13%) 5 files
*.props73 LOC (1%) 4 files
*.cmd57 LOC (1%) 2 files
*.fsproj32 LOC (<1%) 1 file
*.http4 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
csproj
props
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[.][Tt]ests/.*".
    • files with paths like ".*[.][Tt]ests[.].*".
  • 26 files match defined criteria (1,621 LOC, 39.5% vs. main code):
    • 22 *.cs files (1,543 LOC)
    • 3 *.csproj files (52 LOC)
    • 1 *.props files (26 LOC)
  • " *.cs" is biggest, containing 95.19% of LOC.
  • " *.props" is smallest, containing 1.6% of LOC.


*.cs1543 LOC (95%) 22 files
*.csproj52 LOC (3%) 3 files
*.props26 LOC (1%) 1 file
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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]bat".
  • 10 files match defined criteria (282 LOC, 6.9% vs. main code):
    • 5 *.csproj files (152 LOC)
    • 4 *.sh files (128 LOC)
    • 1 *.bat files (2 LOC)
  • " *.csproj" is biggest, containing 53.9% of LOC.
  • " *.bat" is smallest, containing 0.71% of LOC.


*.csproj152 LOC (53%) 5 files
*.sh128 LOC (45%) 4 files
*.bat2 LOC (<1%) 1 file
Other Code
txt
csproj
cshtml
http
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]dockerignore".
  • 69 files match defined criteria (1,384 LOC, 33.7% vs. main code):
    • 25 *.json files (403 LOC)
    • 13 *.cs files (306 LOC)
    • 4 *.txt files (206 LOC)
    • 7 *.md files (172 LOC)
    • 8 *.csproj files (136 LOC)
    • 8 *.cshtml files (97 LOC)
    • 2 *.css files (56 LOC)
    • 1 *.http files (7 LOC)
    • 1 *.js files (1 LOC)
  • " *.json" is biggest, containing 29.12% of LOC.
  • " *.js" is smallest, containing 0.07% of LOC.


*.json403 LOC (29%) 25 files
*.cs306 LOC (22%) 13 files
*.txt206 LOC (14%) 4 files
*.md172 LOC (12%) 7 files
*.csproj136 LOC (9%) 8 files
*.cshtml97 LOC (7%) 8 files
*.css56 LOC (4%) 2 files
*.http7 LOC (<1%) 1 file
*.js1 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-13 20:03