elastic / ecs-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
fs
props
txt
gitattributes
editorconfig
fsproj
dotsettings
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.

main46962 LOC (30%) 188 files
test3310 LOC (2%) 56 files
generated0 LOC (0%) 0 files
build and deployment384 LOC (<1%) 25 files
other101904 LOC (66%) 235 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cshtml
fs
props
fsproj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 188 files match defined criteria (46,962 LOC, 100.0% vs. main code):
    • 146 *.cs files (34,011 LOC)
    • 20 *.html files (11,590 LOC)
    • 14 *.cshtml files (940 LOC)
    • 4 *.fs files (326 LOC)
    • 3 *.props files (76 LOC)
    • 1 *.fsproj files (19 LOC)
  • " *.cs" is biggest, containing 72.42% of LOC.
  • " *.fsproj" is smallest, containing 0.04% of LOC.


*.cs34011 LOC (72%) 146 files
*.html11590 LOC (24%) 20 files
*.cshtml940 LOC (2%) 14 files
*.fs326 LOC (<1%) 4 files
*.props76 LOC (<1%) 3 files
*.fsproj19 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[.].*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*/[Ss]pecs/.*".
  • 56 files match defined criteria (3,310 LOC, 7.0% vs. main code):
    • 46 *.cs files (3,149 LOC)
    • 9 *.csproj files (139 LOC)
    • 1 *.props files (22 LOC)
  • " *.cs" is biggest, containing 95.14% of LOC.
  • " *.props" is smallest, containing 0.66% of LOC.


*.cs3149 LOC (95%) 46 files
*.csproj139 LOC (4%) 9 files
*.props22 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".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*/package[.]json".
  • 25 files match defined criteria (384 LOC, 0.8% vs. main code):
    • 23 *.csproj files (380 LOC)
    • 1 *.bat files (2 LOC)
    • 1 *.sh files (2 LOC)
  • " *.csproj" is biggest, containing 98.96% of LOC.
  • " *.sh" is smallest, containing 0.52% of LOC.


*.csproj380 LOC (98%) 23 files
*.bat2 LOC (<1%) 1 file
*.sh2 LOC (<1%) 1 file
Other Code
txt
csproj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/[Ee]xamples/.*".
    • 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 ".*[.]txt".
  • 235 files match defined criteria (101,904 LOC, 217.0% vs. main code):
    • 187 *.json files (98,970 LOC)
    • 20 *.md files (1,882 LOC)
    • 19 *.cs files (778 LOC)
    • 2 *.txt files (150 LOC)
    • 7 *.csproj files (124 LOC)
  • " *.json" is biggest, containing 97.12% of LOC.
  • " *.csproj" is smallest, containing 0.12% of LOC.


*.json98970 LOC (97%) 187 files
*.md1882 LOC (1%) 20 files
*.cs778 LOC (<1%) 19 files
*.txt150 LOC (<1%) 2 files
*.csproj124 LOC (<1%) 7 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-13 19:49