azure / intelligent-app-workshop
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
props
txt
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.

main1229 LOC (60%) 40 files
test245 LOC (12%) 2 files
generated0 LOC (0%) 0 files
build and deployment119 LOC (5%) 14 files
other443 LOC (21%) 10 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
props
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 40 files match defined criteria (1,229 LOC, 100.0% vs. main code):
    • 29 *.cs files (920 LOC)
    • 2 *.tsx files (138 LOC)
    • 5 *.props files (75 LOC)
    • 1 *.js files (31 LOC)
    • 1 *.py files (29 LOC)
    • 1 *.html files (18 LOC)
    • 1 *.yaml files (18 LOC)
  • " *.cs" is biggest, containing 74.86% of LOC.
  • " *.yaml" is smallest, containing 1.46% of LOC.


*.cs920 LOC (74%) 29 files
*.tsx138 LOC (11%) 2 files
*.props75 LOC (6%) 5 files
*.js31 LOC (2%) 1 file
*.py29 LOC (2%) 1 file
*.html18 LOC (1%) 1 file
*.yaml18 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[.].*".
  • 2 files match defined criteria (245 LOC, 19.9% vs. main code):
    • 1 *.cs files (218 LOC)
    • 1 *.csproj files (27 LOC)
  • " *.cs" is biggest, containing 88.98% of LOC.
  • " *.csproj" is smallest, containing 11.02% of LOC.


*.cs218 LOC (88%) 1 file
*.csproj27 LOC (11%) 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 ".*/package[.]json".
    • files with paths like ".*[.]csproj".
  • 14 files match defined criteria (119 LOC, 9.7% vs. main code). All matches are in *.csproj files.


*.csproj119 LOC (100%) 14 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 ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[.]dockerignore".
  • 10 files match defined criteria (443 LOC, 36.0% vs. main code):
    • 4 *.json files (295 LOC)
    • 5 *.md files (137 LOC)
    • 1 *.txt files (11 LOC)
  • " *.json" is biggest, containing 66.59% of LOC.
  • " *.txt" is smallest, containing 2.48% of LOC.


*.json295 LOC (66%) 4 files
*.md137 LOC (30%) 5 files
*.txt11 LOC (2%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 22:53