aws / aws-tools-for-powershell
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
razor
proj
xsd
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.

main3681203 LOC (98%) 18,927 files
test6322 LOC (<1%) 102 files
generated233 LOC (<1%) 1 file
build and deployment26269 LOC (<1%) 405 files
other5218 LOC (<1%) 13 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
razor
xsd
proj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 18927 files match defined criteria (3,681,203 LOC, 100.0% vs. main code):
    • 17,134 *.cs files (3,452,779 LOC)
    • 784 *.psm1 files (88,230 LOC)
    • 529 *.xml files (81,735 LOC)
    • 399 *.psd1 files (51,636 LOC)
    • 28 *.ps1 files (1,457 LOC)
    • 10 *.html files (1,338 LOC)
    • 15 *.ps1xml files (1,326 LOC)
    • 5 *.css files (689 LOC)
    • 9 *.razor files (663 LOC)
    • 1 *.xsd files (512 LOC)
    • 2 *.proj files (400 LOC)
    • 8 *.yaml files (252 LOC)
    • 3 *.js files (186 LOC)
  • " *.cs" is biggest, containing 93.79% of LOC.
  • " *.js" is smallest, containing 0.01% of LOC.


*.cs3452779 LOC (93%) 17,134 files
*.psm188230 LOC (2%) 784 files
*.xml81735 LOC (2%) 529 files
*.psd151636 LOC (1%) 399 files
*.ps11457 LOC (<1%) 28 files
*.html1338 LOC (<1%) 10 files
*.ps1xml1326 LOC (<1%) 15 files
*.css689 LOC (<1%) 5 files
*.razor663 LOC (<1%) 9 files
*.xsd512 LOC (<1%) 1 file
*.proj400 LOC (<1%) 2 files
*.yaml252 LOC (<1%) 8 files
*.js186 LOC (<1%) 3 files
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/.*".
  • 102 files match defined criteria (6,322 LOC, 0.2% vs. main code):
    • 82 *.ps1 files (5,136 LOC)
    • 17 *.cs files (1,095 LOC)
    • 3 *.csproj files (91 LOC)
  • " *.ps1" is biggest, containing 81.24% of LOC.
  • " *.csproj" is smallest, containing 1.44% of LOC.


*.ps15136 LOC (81%) 82 files
*.cs1095 LOC (17%) 17 files
*.csproj91 LOC (1%) 3 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 ".*[.](html|html|xhtml)" AND any line of content like "[ ]*[<]meta name[=]"generator" .*".
  • 1 file matches defined criteria (233 LOC, 0.0% vs. main code). All matches are in *.html files.


*.html233 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".
  • 405 files match defined criteria (26,269 LOC, 0.7% vs. main code):
    • 403 *.csproj files (26,254 LOC)
    • 2 *.sh files (15 LOC)
  • " *.csproj" is biggest, containing 99.94% of LOC.
  • " *.sh" is smallest, containing 0.06% of LOC.


*.csproj26254 LOC (99%) 403 files
*.sh15 LOC (<1%) 2 files
Other Code
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".
  • 13 files match defined criteria (5,218 LOC, 0.1% vs. main code):
    • 4 *.json files (3,283 LOC)
    • 9 *.md files (1,935 LOC)
  • " *.json" is biggest, containing 62.92% of LOC.
  • " *.md" is smallest, containing 37.08% of LOC.


*.json3283 LOC (62%) 4 files
*.md1935 LOC (37%) 9 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 00:03