aws / aws-dotnet-deploy
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
razor
txt
props
shproj
editorconfig
proj
cmd
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.

main26955 LOC (56%) 616 files
test14123 LOC (29%) 126 files
generated1926 LOC (4%) 1 file
build and deployment761 LOC (1%) 43 files
other4321 LOC (8%) 138 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
proj
props
shproj
cmd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 616 files match defined criteria (26,955 LOC, 100.0% vs. main code):
    • 472 *.cs files (23,207 LOC)
    • 84 *.cshtml files (1,536 LOC)
    • 18 *.css files (983 LOC)
    • 1 *.yaml files (661 LOC)
    • 22 *.razor files (342 LOC)
    • 2 *.ps1 files (91 LOC)
    • 1 *.proj files (67 LOC)
    • 1 *.html files (21 LOC)
    • 11 *.js files (16 LOC)
    • 2 *.props files (16 LOC)
    • 1 *.shproj files (13 LOC)
    • 1 *.cmd files (2 LOC)
  • " *.cs" is biggest, containing 86.1% of LOC.
  • " *.cmd" is smallest, containing 0.01% of LOC.


*.cs23207 LOC (86%) 472 files
*.cshtml1536 LOC (5%) 84 files
*.css983 LOC (3%) 18 files
*.yaml661 LOC (2%) 1 file
*.razor342 LOC (1%) 22 files
*.ps191 LOC (<1%) 2 files
*.proj67 LOC (<1%) 1 file
*.html21 LOC (<1%) 1 file
*.js16 LOC (<1%) 11 files
*.props16 LOC (<1%) 2 files
*.shproj13 LOC (<1%) 1 file
*.cmd2 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]est/.*".
    • files with paths like ".*[.]UnitTests/.*".
    • files with paths like ".*UnitTests[.][a-zA-Z0-9_]+".
  • 126 files match defined criteria (14,123 LOC, 52.4% vs. main code):
    • 119 *.cs files (13,890 LOC)
    • 7 *.csproj files (233 LOC)
  • " *.cs" is biggest, containing 98.35% of LOC.
  • " *.csproj" is smallest, containing 1.65% of LOC.


*.cs13890 LOC (98%) 119 files
*.csproj233 LOC (1%) 7 files
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]cs" AND any line of content like "[/][/][ ]*".
  • 1 file matches defined criteria (1,926 LOC, 7.1% vs. main code). All matches are in *.cs files.


*.cs1926 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 ".*[.]csproj".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
  • 43 files match defined criteria (761 LOC, 2.8% vs. main code):
    • 42 *.csproj files (759 LOC)
    • 1 *.sh files (2 LOC)
  • " *.csproj" is biggest, containing 99.74% of LOC.
  • " *.sh" is smallest, containing 0.26% of LOC.


*.csproj759 LOC (99%) 42 files
*.sh2 LOC (<1%) 1 file
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 ".*[.]svg".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*[.]editorconfig".
  • 138 files match defined criteria (4,321 LOC, 16.0% vs. main code):
    • 85 *.json files (1,952 LOC)
    • 31 *.md files (1,418 LOC)
    • 2 *.svg files (581 LOC)
    • 20 *.txt files (370 LOC)
  • " *.json" is biggest, containing 45.17% of LOC.
  • " *.txt" is smallest, containing 8.56% of LOC.


*.json1952 LOC (45%) 85 files
*.md1418 LOC (32%) 31 files
*.svg581 LOC (13%) 2 files
*.txt370 LOC (8%) 20 files
Analyzers
Info about analyzers used for source code examinations.
  • *.cs files are analyzed with CSharpAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • Unit size analysis
    • Conditional complexity analysis
    • Advanced heuristic dependency analysis (based on namespace heuristics)
  • *.cshtml files are analyzed with HtmlAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • Unit size analysis
    • Conditional complexity analysis
    • Advanced heuristic dependency analysis
  • *.css files are analyzed with CssAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.yaml files are analyzed with YamlAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.razor files are analyzed with HtmlAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • Unit size analysis
    • Conditional complexity analysis
    • Advanced heuristic dependency analysis
  • *.ps1 files are analyzed with DefaultLanguageAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Basic code cleaning (empty lines removed for LOC calculations and duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.proj files are analyzed with XmlAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.html files are analyzed with HtmlAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • Unit size analysis
    • Conditional complexity analysis
    • Advanced heuristic dependency analysis
  • *.js files are analyzed with JavaScriptAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • Unit size analysis
    • Conditional complexity analysis
    • No dependency analysis
  • *.props files are analyzed with XmlAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.shproj files are analyzed with XmlAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.cmd files are analyzed with DefaultLanguageAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Basic code cleaning (empty lines removed for LOC calculations and duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis


2025-05-04 00:12