azure / template-analyzer
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
nuspec
props
txt
targets
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.

main4782 LOC (22%) 80 files
test6778 LOC (32%) 40 files
generated0 LOC (0%) 0 files
build and deployment316 LOC (1%) 16 files
other9108 LOC (43%) 90 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
props
targets
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 80 files match defined criteria (4,782 LOC, 100.0% vs. main code):
    • 77 *.cs files (4,721 LOC)
    • 2 *.props files (44 LOC)
    • 1 *.targets files (17 LOC)
  • " *.cs" is biggest, containing 98.72% of LOC.
  • " *.targets" is smallest, containing 0.36% of LOC.


*.cs4721 LOC (98%) 77 files
*.props44 LOC (<1%) 2 files
*.targets17 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 ".*[.]UnitTests/.*".
    • files with paths like ".*UnitTests[.][a-zA-Z0-9_]+".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test[.].*".
  • 40 files match defined criteria (6,778 LOC, 141.7% vs. main code):
    • 33 *.cs files (6,608 LOC)
    • 7 *.csproj files (170 LOC)
  • " *.cs" is biggest, containing 97.49% of LOC.
  • " *.csproj" is smallest, containing 2.51% of LOC.


*.cs6608 LOC (97%) 33 files
*.csproj170 LOC (2%) 7 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 ".*[.]csproj".
    • files with paths like ".*[.]nuspec".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 16 files match defined criteria (316 LOC, 6.6% vs. main code):
    • 12 *.csproj files (219 LOC)
    • 4 *.nuspec files (97 LOC)
  • " *.csproj" is biggest, containing 69.3% of LOC.
  • " *.nuspec" is smallest, containing 30.7% of LOC.


*.csproj219 LOC (69%) 12 files
*.nuspec97 LOC (30%) 4 files
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 90 files match defined criteria (9,108 LOC, 190.5% vs. main code):
    • 84 *.json files (8,847 LOC)
    • 5 *.md files (244 LOC)
    • 1 *.txt files (17 LOC)
  • " *.json" is biggest, containing 97.13% of LOC.
  • " *.txt" is smallest, containing 0.19% of LOC.


*.json8847 LOC (97%) 84 files
*.md244 LOC (2%) 5 files
*.txt17 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 22:08