elastic / elastic-ingest-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
fs
props
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.

main2548 LOC (56%) 54 files
test936 LOC (20%) 22 files
generated0 LOC (0%) 0 files
build and deployment120 LOC (2%) 10 files
other883 LOC (19%) 25 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
fsproj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 54 files match defined criteria (2,548 LOC, 100.0% vs. main code):
    • 47 *.cs files (2,229 LOC)
    • 4 *.fs files (234 LOC)
    • 2 *.props files (63 LOC)
    • 1 *.fsproj files (22 LOC)
  • " *.cs" is biggest, containing 87.48% of LOC.
  • " *.fsproj" is smallest, containing 0.86% of LOC.


*.cs2229 LOC (87%) 47 files
*.fs234 LOC (9%) 4 files
*.props63 LOC (2%) 2 files
*.fsproj22 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[.].*".
  • 22 files match defined criteria (936 LOC, 36.7% vs. main code):
    • 18 *.cs files (886 LOC)
    • 3 *.csproj files (35 LOC)
    • 1 *.props files (15 LOC)
  • " *.cs" is biggest, containing 94.66% of LOC.
  • " *.props" is smallest, containing 1.6% of LOC.


*.cs886 LOC (94%) 18 files
*.csproj35 LOC (3%) 3 files
*.props15 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".
  • 10 files match defined criteria (120 LOC, 4.7% vs. main code):
    • 8 *.csproj files (116 LOC)
    • 1 *.bat files (2 LOC)
    • 1 *.sh files (2 LOC)
  • " *.csproj" is biggest, containing 96.67% of LOC.
  • " *.sh" is smallest, containing 1.67% of LOC.


*.csproj116 LOC (96%) 8 files
*.bat2 LOC (1%) 1 file
*.sh2 LOC (1%) 1 file
Other Code
txt
csproj
props
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 ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
  • 25 files match defined criteria (883 LOC, 34.7% vs. main code):
    • 6 *.cs files (320 LOC)
    • 3 *.txt files (234 LOC)
    • 8 *.md files (214 LOC)
    • 5 *.csproj files (57 LOC)
    • 2 *.json files (37 LOC)
    • 1 *.props files (21 LOC)
  • " *.cs" is biggest, containing 36.24% of LOC.
  • " *.props" is smallest, containing 2.38% of LOC.


*.cs320 LOC (36%) 6 files
*.txt234 LOC (26%) 3 files
*.md214 LOC (24%) 8 files
*.csproj57 LOC (6%) 5 files
*.json37 LOC (4%) 2 files
*.props21 LOC (2%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-13 20:01