aws / aws-xray-sdk-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
proj
gitattributes
props
nuspec
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.

main8494 LOC (44%) 118 files
test7176 LOC (37%) 52 files
generated0 LOC (0%) 0 files
build and deployment337 LOC (1%) 8 files
other3206 LOC (16%) 28 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proj
props
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 118 files match defined criteria (8,494 LOC, 100.0% vs. main code):
    • 115 *.cs files (8,336 LOC)
    • 1 *.ps1 files (101 LOC)
    • 1 *.proj files (44 LOC)
    • 1 *.props files (13 LOC)
  • " *.cs" is biggest, containing 98.14% of LOC.
  • " *.props" is smallest, containing 0.15% of LOC.


*.cs8336 LOC (98%) 115 files
*.ps1101 LOC (1%) 1 file
*.proj44 LOC (<1%) 1 file
*.props13 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]est/.*".
    • files with paths like ".*/UnitTests?/.*".
    • files with paths like ".*UnitTests[.][a-zA-Z0-9_]+".
    • files with paths like ".*/IntegrationTests?/.*".
  • 52 files match defined criteria (7,176 LOC, 84.5% vs. main code):
    • 49 *.cs files (6,990 LOC)
    • 3 *.csproj files (186 LOC)
  • " *.cs" is biggest, containing 97.41% of LOC.
  • " *.csproj" is smallest, containing 2.59% of LOC.


*.cs6990 LOC (97%) 49 files
*.csproj186 LOC (2%) 3 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
csproj
nuspec
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]nuspec".
    • files with paths like ".*[.]csproj".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
  • 8 files match defined criteria (337 LOC, 4.0% vs. main code):
    • 7 *.csproj files (270 LOC)
    • 1 *.nuspec files (67 LOC)
  • " *.csproj" is biggest, containing 80.12% of LOC.
  • " *.nuspec" is smallest, containing 19.88% of LOC.


*.csproj270 LOC (80%) 7 files
*.nuspec67 LOC (19%) 1 file
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
  • 28 files match defined criteria (3,206 LOC, 37.7% vs. main code):
    • 22 *.json files (1,893 LOC)
    • 5 *.md files (1,270 LOC)
    • 1 *.txt files (43 LOC)
  • " *.json" is biggest, containing 59.05% of LOC.
  • " *.txt" is smallest, containing 1.34% of LOC.


*.json1893 LOC (59%) 22 files
*.md1270 LOC (39%) 5 files
*.txt43 LOC (1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-03 22:09