elastic / elasticsearch-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
txt
fs
csproj
editorconfig
props
gitattributes
targets
proj
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.

main476557 LOC (94%) 2,832 files
test24339 LOC (4%) 315 files
generated0 LOC (0%) 0 files
build and deployment103 LOC (<1%) 8 files
other3708 LOC (<1%) 213 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
targets
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 2832 files match defined criteria (476,557 LOC, 100.0% vs. main code):
    • 2,813 *.cs files (475,281 LOC)
    • 12 *.fs files (1,111 LOC)
    • 2 *.props files (65 LOC)
    • 1 *.fsproj files (48 LOC)
    • 2 *.xml files (19 LOC)
    • 1 *.yaml files (19 LOC)
    • 1 *.targets files (14 LOC)
  • " *.cs" is biggest, containing 99.73% of LOC.
  • " *.targets" is smallest, containing 0% of LOC.


*.cs475281 LOC (99%) 2,813 files
*.fs1111 LOC (<1%) 12 files
*.props65 LOC (<1%) 2 files
*.fsproj48 LOC (<1%) 1 file
*.xml19 LOC (<1%) 2 files
*.yaml19 LOC (<1%) 1 file
*.targets14 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
csproj
proj
props
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]ests/.*".
  • 315 files match defined criteria (24,339 LOC, 5.1% vs. main code):
    • 307 *.cs files (24,215 LOC)
    • 5 *.csproj files (105 LOC)
    • 1 *.proj files (9 LOC)
    • 1 *.props files (6 LOC)
    • 1 *.yaml files (4 LOC)
  • " *.cs" is biggest, containing 99.49% of LOC.
  • " *.yaml" is smallest, containing 0.02% of LOC.


*.cs24215 LOC (99%) 307 files
*.csproj105 LOC (<1%) 5 files
*.proj9 LOC (<1%) 1 file
*.props6 LOC (<1%) 1 file
*.yaml4 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]csproj".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/[.]gitattributes".
  • 8 files match defined criteria (103 LOC, 0.0% vs. main code):
    • 4 *.csproj files (91 LOC)
    • 2 *.sh files (9 LOC)
    • 2 *.bat files (3 LOC)
  • " *.csproj" is biggest, containing 88.35% of LOC.
  • " *.bat" is smallest, containing 2.91% of LOC.


*.csproj91 LOC (88%) 4 files
*.sh9 LOC (8%) 2 files
*.bat3 LOC (2%) 2 files
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*/[Dd]ocumentation/.*".
    • files with paths like ".*/README[.][a-z0-9]+".
  • 213 files match defined criteria (3,708 LOC, 0.8% vs. main code):
    • 200 *.txt files (2,894 LOC)
    • 4 *.cs files (511 LOC)
    • 5 *.md files (214 LOC)
    • 4 *.json files (89 LOC)
  • " *.txt" is biggest, containing 78.05% of LOC.
  • " *.json" is smallest, containing 2.4% of LOC.


*.txt2894 LOC (78%) 200 files
*.cs511 LOC (13%) 4 files
*.md214 LOC (5%) 5 files
*.json89 LOC (2%) 4 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-13 19:39