azure / RDS-Templates
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
txt
csproj
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.

main40165 LOC (64%) 312 files
test267 LOC (<1%) 1 file
generated0 LOC (0%) 0 files
build and deployment46 LOC (<1%) 3 files
other22136 LOC (35%) 166 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cshtml
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 312 files match defined criteria (40,165 LOC, 100.0% vs. main code):
    • 222 *.ps1 files (29,613 LOC)
    • 14 *.psm1 files (2,466 LOC)
    • 31 *.cs files (2,128 LOC)
    • 13 *.cshtml files (1,669 LOC)
    • 2 *.css files (1,413 LOC)
    • 2 *.html files (1,352 LOC)
    • 16 *.tf files (1,027 LOC)
    • 5 *.psd1 files (285 LOC)
    • 4 *.xml files (176 LOC)
    • 2 *.tfvars files (35 LOC)
    • 1 *.js files (1 LOC)
  • " *.ps1" is biggest, containing 73.73% of LOC.
  • " *.js" is smallest, containing 0% of LOC.


*.ps129613 LOC (73%) 222 files
*.psm12466 LOC (6%) 14 files
*.cs2128 LOC (5%) 31 files
*.cshtml1669 LOC (4%) 13 files
*.css1413 LOC (3%) 2 files
*.html1352 LOC (3%) 2 files
*.tf1027 LOC (2%) 16 files
*.psd1285 LOC (<1%) 5 files
*.xml176 LOC (<1%) 4 files
*.tfvars35 LOC (<1%) 2 files
*.js1 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 ".*/[Tt]est/.*".
  • 1 file matches defined criteria (267 LOC, 0.7% vs. main code). All matches are in *.js files.


*.js267 LOC (100%) 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 ".*[.]csproj".
  • 3 files match defined criteria (46 LOC, 0.1% vs. main code). All matches are in *.csproj files.


*.csproj46 LOC (100%) 3 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 ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 166 files match defined criteria (22,136 LOC, 55.1% vs. main code):
    • 68 *.json files (15,380 LOC)
    • 94 *.md files (6,560 LOC)
    • 4 *.txt files (196 LOC)
  • " *.json" is biggest, containing 69.48% of LOC.
  • " *.txt" is smallest, containing 0.89% of LOC.


*.json15380 LOC (69%) 68 files
*.md6560 LOC (29%) 94 files
*.txt196 LOC (<1%) 4 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 21:19