aws / aws-rfdk
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
npmignore
txt
gitattributes
eslintignore
npmrc
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.

main13320 LOC (29%) 146 files
test23313 LOC (51%) 82 files
generated0 LOC (0%) 0 files
build and deployment2021 LOC (4%) 61 files
other6891 LOC (15%) 119 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 146 files match defined criteria (13,320 LOC, 100.0% vs. main code):
    • 131 *.ts files (12,221 LOC)
    • 3 *.py files (600 LOC)
    • 3 *.ps1 files (312 LOC)
    • 8 *.js files (171 LOC)
    • 1 *.yaml files (16 LOC)
  • " *.ts" is biggest, containing 91.75% of LOC.
  • " *.yaml" is smallest, containing 0.12% of LOC.


*.ts12221 LOC (91%) 131 files
*.py600 LOC (4%) 3 files
*.ps1312 LOC (2%) 3 files
*.js171 LOC (1%) 8 files
*.yaml16 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 ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/test_.*".
  • 82 files match defined criteria (23,313 LOC, 175.0% vs. main code):
    • 73 *.ts files (22,609 LOC)
    • 2 *.py files (528 LOC)
    • 3 *.sh files (129 LOC)
    • 4 *.js files (47 LOC)
  • " *.ts" is biggest, containing 96.98% of LOC.
  • " *.js" is smallest, containing 0.2% of LOC.


*.ts22609 LOC (96%) 73 files
*.py528 LOC (2%) 2 files
*.sh129 LOC (<1%) 3 files
*.js47 LOC (<1%) 4 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]sh".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/[.]gitattributes".
  • 61 files match defined criteria (2,021 LOC, 15.2% vs. main code). All matches are in *.sh files.


*.sh2021 LOC (100%) 61 files
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[.]npmignore".
    • 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 ".*/[.]eslintignore".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]npmrc".
  • 119 files match defined criteria (6,891 LOC, 51.7% vs. main code):
    • 23 *.md files (2,915 LOC)
    • 35 *.py files (1,804 LOC)
    • 15 *.ts files (1,269 LOC)
    • 33 *.json files (846 LOC)
    • 4 *.bat files (44 LOC)
    • 5 *.sh files (9 LOC)
    • 4 *.txt files (4 LOC)
  • " *.md" is biggest, containing 42.3% of LOC.
  • " *.txt" is smallest, containing 0.06% of LOC.


*.md2915 LOC (42%) 23 files
*.py1804 LOC (26%) 35 files
*.ts1269 LOC (18%) 15 files
*.json846 LOC (12%) 33 files
*.bat44 LOC (<1%) 4 files
*.sh9 LOC (<1%) 5 files
*.txt4 LOC (<1%) 4 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 00:11