aws / aws-toolkit-common
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
txt
proj
properties
npmignore
nuspec
editorconfig
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.

main2492 LOC (6%) 36 files
test2368 LOC (6%) 36 files
generated11059 LOC (28%) 2 files
build and deployment198 LOC (<1%) 6 files
other22426 LOC (58%) 42 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 36 files match defined criteria (2,492 LOC, 100.0% vs. main code):
    • 18 *.cs files (860 LOC)
    • 5 *.kt files (778 LOC)
    • 8 *.ts files (601 LOC)
    • 2 *.kts files (150 LOC)
    • 2 *.proj files (81 LOC)
    • 1 *.toml files (22 LOC)
  • " *.cs" is biggest, containing 34.51% of LOC.
  • " *.toml" is smallest, containing 0.88% of LOC.


*.cs860 LOC (34%) 18 files
*.kt778 LOC (31%) 5 files
*.ts601 LOC (24%) 8 files
*.kts150 LOC (6%) 2 files
*.proj81 LOC (3%) 2 files
*.toml22 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 ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*[.][Tt]ests/.*".
    • files with paths like ".*[.][Tt]ests[.].*".
    • files with paths like ".*/[Tt]est/.*".
  • 36 files match defined criteria (2,368 LOC, 95.0% vs. main code):
    • 21 *.kt files (1,339 LOC)
    • 7 *.cs files (609 LOC)
    • 5 *.ts files (338 LOC)
    • 2 *.csproj files (72 LOC)
    • 1 *.js files (10 LOC)
  • " *.kt" is biggest, containing 56.55% of LOC.
  • " *.js" is smallest, containing 0.42% of LOC.


*.kt1339 LOC (56%) 21 files
*.cs609 LOC (25%) 7 files
*.ts338 LOC (14%) 5 files
*.csproj72 LOC (3%) 2 files
*.js10 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 paths like ".*/package[-]lock[.]json".
  • 2 files match defined criteria (11,059 LOC, 443.8% vs. main code). All matches are in *.json files.


*.json11059 LOC (100%) 2 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]csproj".
    • files with paths like ".*[.]nuspec".
    • files with paths like ".*[.]bat".
  • 6 files match defined criteria (198 LOC, 7.9% vs. main code):
    • 4 *.csproj files (106 LOC)
    • 1 *.bat files (71 LOC)
    • 1 *.nuspec files (21 LOC)
  • " *.csproj" is biggest, containing 53.54% of LOC.
  • " *.nuspec" is smallest, containing 10.61% of LOC.


*.csproj106 LOC (53%) 4 files
*.bat71 LOC (35%) 1 file
*.nuspec21 LOC (10%) 1 file
Other Code
txt
properties
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 ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/[.]npmignore".
  • 42 files match defined criteria (22,426 LOC, 899.9% vs. main code):
    • 28 *.json files (20,397 LOC)
    • 3 *.txt files (1,454 LOC)
    • 10 *.md files (569 LOC)
    • 1 *.properties files (6 LOC)
  • " *.json" is biggest, containing 90.95% of LOC.
  • " *.properties" is smallest, containing 0.03% of LOC.


*.json20397 LOC (90%) 28 files
*.txt1454 LOC (6%) 3 files
*.md569 LOC (2%) 10 files
*.properties6 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 00:08