aws / aws-toolkit-vscode
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
txt
mod
diff
csproj
properties
npmignore
hcl
editorconfig
npmrc
mjs
prettierignore
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.

main132550 LOC (53%) 1,103 files
test77803 LOC (31%) 593 files
generated3574 LOC (1%) 2 files
build and deployment636 LOC (<1%) 18 files
other34580 LOC (13%) 152 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
hcl
mjs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1103 files match defined criteria (132,550 LOC, 100.0% vs. main code):
    • 1,009 *.ts files (125,847 LOC)
    • 20 *.vue files (3,590 LOC)
    • 14 *.css files (1,561 LOC)
    • 23 *.yaml files (574 LOC)
    • 8 *.java files (294 LOC)
    • 10 *.js files (206 LOC)
    • 1 *.xml files (107 LOC)
    • 1 *.ps1 files (97 LOC)
    • 5 *.go files (92 LOC)
    • 2 *.cs files (74 LOC)
    • 6 *.py files (63 LOC)
    • 1 *.hcl files (27 LOC)
    • 1 *.mjs files (10 LOC)
    • 1 *.rb files (5 LOC)
    • 1 *.tf files (3 LOC)
  • " *.ts" is biggest, containing 94.94% of LOC.
  • " *.tf" is smallest, containing 0% of LOC.


*.ts125847 LOC (94%) 1,009 files
*.vue3590 LOC (2%) 20 files
*.css1561 LOC (1%) 14 files
*.yaml574 LOC (<1%) 23 files
*.java294 LOC (<1%) 8 files
*.js206 LOC (<1%) 10 files
*.xml107 LOC (<1%) 1 file
*.ps197 LOC (<1%) 1 file
*.go92 LOC (<1%) 5 files
*.cs74 LOC (<1%) 2 files
*.py63 LOC (<1%) 6 files
*.hcl27 LOC (<1%) 1 file
*.mjs10 LOC (<1%) 1 file
*.rb5 LOC (<1%) 1 file
*.tf3 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/.*".
    • files with paths like ".*/e2e/.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/[Mm]ocks/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test[.].*".
  • 593 files match defined criteria (77,803 LOC, 58.7% vs. main code):
    • 574 *.ts files (77,271 LOC)
    • 6 *.yaml files (231 LOC)
    • 2 *.go files (102 LOC)
    • 5 *.java files (81 LOC)
    • 3 *.py files (64 LOC)
    • 2 *.xml files (50 LOC)
    • 1 *.toml files (4 LOC)
  • " *.ts" is biggest, containing 99.32% of LOC.
  • " *.toml" is smallest, containing 0.01% of LOC.


*.ts77271 LOC (99%) 574 files
*.yaml231 LOC (<1%) 6 files
*.go102 LOC (<1%) 2 files
*.java81 LOC (<1%) 5 files
*.py64 LOC (<1%) 3 files
*.xml50 LOC (<1%) 2 files
*.toml4 LOC (<1%) 1 file
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with any line of content like "\<\!\-\-[ ]*Generated by .*".
    • files with paths like ".*/package[-]lock[.]json".
  • 2 files match defined criteria (3,574 LOC, 2.7% vs. main code). All matches are in *.json files.


*.json3574 LOC (100%) 2 files
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 ".*([.]|/)webpack([.]|/).*".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/pom[.]xml".
    • files with paths like ".*[.]gradle".
    • files with paths like ".*[.]csproj".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/package[-]lock[.]json".
  • 18 files match defined criteria (636 LOC, 0.5% vs. main code):
    • 6 *.js files (265 LOC)
    • 3 *.gradle files (114 LOC)
    • 2 *.xml files (100 LOC)
    • 1 *.bat files (68 LOC)
    • 4 *.sh files (66 LOC)
    • 2 *.csproj files (23 LOC)
  • " *.js" is biggest, containing 41.67% of LOC.
  • " *.csproj" is smallest, containing 3.62% of LOC.


*.js265 LOC (41%) 6 files
*.gradle114 LOC (17%) 3 files
*.xml100 LOC (15%) 2 files
*.bat68 LOC (10%) 1 file
*.sh66 LOC (10%) 4 files
*.csproj23 LOC (3%) 2 files
Other Code
txt
diff
mod
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[.]prettierignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]diff".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]npmignore".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]npmrc".
    • files with paths like ".*[.]editorconfig".
  • 152 files match defined criteria (34,580 LOC, 26.1% vs. main code):
    • 64 *.json files (30,024 LOC)
    • 32 *.md files (4,286 LOC)
    • 47 *.svg files (227 LOC)
    • 4 *.txt files (23 LOC)
    • 2 *.diff files (14 LOC)
    • 3 *.mod files (6 LOC)
  • " *.json" is biggest, containing 86.82% of LOC.
  • " *.mod" is smallest, containing 0.02% of LOC.


*.json30024 LOC (86%) 64 files
*.md4286 LOC (12%) 32 files
*.svg227 LOC (<1%) 47 files
*.txt23 LOC (<1%) 4 files
*.diff14 LOC (<1%) 2 files
*.mod6 LOC (<1%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-03 23:54