elastic / elastic-aspire-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
txt
props
gitattributes
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.

main385 LOC (19%) 12 files
test1227 LOC (62%) 18 files
generated0 LOC (0%) 0 files
build and deployment33 LOC (1%) 2 files
other326 LOC (16%) 5 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 ".*".
  • 12 files match defined criteria (385 LOC, 100.0% vs. main code):
    • 9 *.cs files (306 LOC)
    • 2 *.props files (70 LOC)
    • 1 *.targets files (9 LOC)
  • " *.cs" is biggest, containing 79.48% of LOC.
  • " *.targets" is smallest, containing 2.34% of LOC.


*.cs306 LOC (79%) 9 files
*.props70 LOC (18%) 2 files
*.targets9 LOC (2%) 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 ".*[.][Tt]ests/.*".
    • files with paths like ".*[.][Tt]ests[.].*".
  • 18 files match defined criteria (1,227 LOC, 318.7% vs. main code):
    • 16 *.cs files (1,199 LOC)
    • 2 *.csproj files (28 LOC)
  • " *.cs" is biggest, containing 97.72% of LOC.
  • " *.csproj" is smallest, containing 2.28% of LOC.


*.cs1199 LOC (97%) 16 files
*.csproj28 LOC (2%) 2 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]csproj".
    • files with paths like ".*/[.]gitattributes".
  • 2 files match defined criteria (33 LOC, 8.6% vs. main code). All matches are in *.csproj files.


*.csproj33 LOC (100%) 2 files
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
  • 5 files match defined criteria (326 LOC, 84.7% vs. main code):
    • 2 *.txt files (171 LOC)
    • 2 *.md files (102 LOC)
    • 1 *.json files (53 LOC)
  • " *.txt" is biggest, containing 52.45% of LOC.
  • " *.json" is smallest, containing 16.26% of LOC.


*.txt171 LOC (52%) 2 files
*.md102 LOC (31%) 2 files
*.json53 LOC (16%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-13 20:10