elastic / elastic-transport-net
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
fs
txt
editorconfig
props
gitattributes
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.

main11748 LOC (77%) 188 files
test2837 LOC (18%) 44 files
generated0 LOC (0%) 0 files
build and deployment101 LOC (<1%) 7 files
other405 LOC (2%) 9 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 ".*".
  • 188 files match defined criteria (11,748 LOC, 100.0% vs. main code):
    • 181 *.cs files (11,413 LOC)
    • 4 *.fs files (254 LOC)
    • 2 *.props files (62 LOC)
    • 1 *.fsproj files (19 LOC)
  • " *.cs" is biggest, containing 97.15% of LOC.
  • " *.fsproj" is smallest, containing 0.16% of LOC.


*.cs11413 LOC (97%) 181 files
*.fs254 LOC (2%) 4 files
*.props62 LOC (<1%) 2 files
*.fsproj19 LOC (<1%) 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/.*".
  • 44 files match defined criteria (2,837 LOC, 24.1% vs. main code):
    • 40 *.cs files (2,739 LOC)
    • 4 *.csproj files (98 LOC)
  • " *.cs" is biggest, containing 96.55% of LOC.
  • " *.csproj" is smallest, containing 3.45% of LOC.


*.cs2739 LOC (96%) 40 files
*.csproj98 LOC (3%) 4 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 ".*[.]sh".
    • files with paths like ".*[.]csproj".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/[.]gitattributes".
  • 7 files match defined criteria (101 LOC, 0.9% vs. main code):
    • 5 *.csproj files (97 LOC)
    • 1 *.bat files (2 LOC)
    • 1 *.sh files (2 LOC)
  • " *.csproj" is biggest, containing 96.04% of LOC.
  • " *.sh" is smallest, containing 1.98% of LOC.


*.csproj97 LOC (96%) 5 files
*.bat2 LOC (1%) 1 file
*.sh2 LOC (1%) 1 file
Other Code
txt
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 ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
  • 9 files match defined criteria (405 LOC, 3.4% vs. main code):
    • 2 *.txt files (173 LOC)
    • 3 *.md files (135 LOC)
    • 2 *.cs files (60 LOC)
    • 2 *.json files (37 LOC)
  • " *.txt" is biggest, containing 42.72% of LOC.
  • " *.json" is smallest, containing 9.14% of LOC.


*.txt173 LOC (42%) 2 files
*.md135 LOC (33%) 3 files
*.cs60 LOC (14%) 2 files
*.json37 LOC (9%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-13 19:52