azure / reliable-web-app-pattern-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
cshtml
razor
csproj
txt
jsonc
gitattributes
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.

main7983 LOC (30%) 160 files
test69 LOC (<1%) 1 file
generated7350 LOC (28%) 3 files
build and deployment291 LOC (1%) 16 files
other10190 LOC (39%) 48 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cshtml
razor
jsonc
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 160 files match defined criteria (7,983 LOC, 100.0% vs. main code):
    • 113 *.cs files (4,953 LOC)
    • 13 *.ps1 files (1,571 LOC)
    • 18 *.cshtml files (888 LOC)
    • 4 *.css files (237 LOC)
    • 7 *.razor files (132 LOC)
    • 2 *.jsonc files (123 LOC)
    • 2 *.yaml files (60 LOC)
    • 1 *.js files (19 LOC)
  • " *.cs" is biggest, containing 62.04% of LOC.
  • " *.js" is smallest, containing 0.24% of LOC.


*.cs4953 LOC (62%) 113 files
*.ps11571 LOC (19%) 13 files
*.cshtml888 LOC (11%) 18 files
*.css237 LOC (2%) 4 files
*.razor132 LOC (1%) 7 files
*.jsonc123 LOC (1%) 2 files
*.yaml60 LOC (<1%) 2 files
*.js19 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Mm]ocks/.*".
  • 1 file matches defined criteria (69 LOC, 0.9% vs. main code). All matches are in *.cs files.


*.cs69 LOC (100%) 1 file
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with any line of content like "\<\!\-\-[ ]*Generated by .*".
  • 3 files match defined criteria (7,350 LOC, 92.1% vs. main code). All matches are in *.svg files.


*.svg7350 LOC (100%) 3 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 ".*/[.]gitattributes".
  • 16 files match defined criteria (291 LOC, 3.6% vs. main code):
    • 10 *.sh files (172 LOC)
    • 6 *.csproj files (119 LOC)
  • " *.sh" is biggest, containing 59.11% of LOC.
  • " *.csproj" is smallest, containing 40.89% of LOC.


*.sh172 LOC (59%) 10 files
*.csproj119 LOC (40%) 6 files
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 ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]svg".
  • 48 files match defined criteria (10,190 LOC, 127.6% vs. main code):
    • 4 *.svg files (7,893 LOC)
    • 24 *.md files (1,785 LOC)
    • 17 *.json files (473 LOC)
    • 3 *.txt files (39 LOC)
  • " *.svg" is biggest, containing 77.46% of LOC.
  • " *.txt" is smallest, containing 0.38% of LOC.


*.svg7893 LOC (77%) 4 files
*.md1785 LOC (17%) 24 files
*.json473 LOC (4%) 17 files
*.txt39 LOC (<1%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 22:33