azure / modern-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
csproj
txt
jsonc
gitattributes
editorconfig
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.

main8417 LOC (29%) 163 files
test1207 LOC (4%) 33 files
generated8830 LOC (30%) 3 files
build and deployment345 LOC (1%) 15 files
other9973 LOC (34%) 34 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cshtml
jsonc
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 163 files match defined criteria (8,417 LOC, 100.0% vs. main code):
    • 129 *.cs files (5,604 LOC)
    • 12 *.ps1 files (1,651 LOC)
    • 16 *.cshtml files (821 LOC)
    • 2 *.jsonc files (137 LOC)
    • 2 *.css files (125 LOC)
    • 1 *.yaml files (60 LOC)
    • 1 *.js files (19 LOC)
  • " *.cs" is biggest, containing 66.58% of LOC.
  • " *.js" is smallest, containing 0.23% of LOC.


*.cs5604 LOC (66%) 129 files
*.ps11651 LOC (19%) 12 files
*.cshtml821 LOC (9%) 16 files
*.jsonc137 LOC (1%) 2 files
*.css125 LOC (1%) 2 files
*.yaml60 LOC (<1%) 1 file
*.js19 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[.].*".
  • 33 files match defined criteria (1,207 LOC, 14.3% vs. main code):
    • 28 *.cs files (1,069 LOC)
    • 5 *.csproj files (138 LOC)
  • " *.cs" is biggest, containing 88.57% of LOC.
  • " *.csproj" is smallest, containing 11.43% of LOC.


*.cs1069 LOC (88%) 28 files
*.csproj138 LOC (11%) 5 files
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 (8,830 LOC, 104.9% vs. main code). All matches are in *.svg files.


*.svg8830 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".
  • 15 files match defined criteria (345 LOC, 4.1% vs. main code):
    • 10 *.sh files (182 LOC)
    • 5 *.csproj files (163 LOC)
  • " *.sh" is biggest, containing 52.75% of LOC.
  • " *.csproj" is smallest, containing 47.25% of LOC.


*.sh182 LOC (52%) 10 files
*.csproj163 LOC (47%) 5 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".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/[.]dockerignore".
  • 34 files match defined criteria (9,973 LOC, 118.5% vs. main code):
    • 3 *.svg files (8,830 LOC)
    • 15 *.md files (799 LOC)
    • 12 *.json files (230 LOC)
    • 4 *.txt files (114 LOC)
  • " *.svg" is biggest, containing 88.54% of LOC.
  • " *.txt" is smallest, containing 1.14% of LOC.


*.svg8830 LOC (88%) 3 files
*.md799 LOC (8%) 15 files
*.json230 LOC (2%) 12 files
*.txt114 LOC (1%) 4 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 22:52