aws / aws-cdk
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
npmignore
snap
mjs
gitattributes
mod
npmrc
als
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.

main185026 LOC (6%) 2,323 files
test508683 LOC (17%) 3,499 files
generated7380 LOC (<1%) 5 files
build and deployment1027 LOC (<1%) 35 files
other2223548 LOC (76%) 10,278 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 ".*".
  • 2323 files match defined criteria (185,026 LOC, 100.0% vs. main code):
    • 2,270 *.ts files (181,571 LOC)
    • 28 *.js files (1,772 LOC)
    • 19 *.py files (1,367 LOC)
    • 5 *.yaml files (222 LOC)
    • 1 *.toml files (94 LOC)
  • " *.ts" is biggest, containing 98.13% of LOC.
  • " *.toml" is smallest, containing 0.05% of LOC.


*.ts181571 LOC (98%) 2,270 files
*.js1772 LOC (<1%) 28 files
*.py1367 LOC (<1%) 19 files
*.yaml222 LOC (<1%) 5 files
*.toml94 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
snap
mjs
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 ".*[-]test[-].*".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*[-]tests[-].*".
    • files with paths like ".*[.]snap".
    • files with paths like ".*/test_.*".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
  • 3499 files match defined criteria (508,683 LOC, 274.9% vs. main code):
    • 2,615 *.ts files (417,871 LOC)
    • 327 *.js files (60,139 LOC)
    • 364 *.py files (23,586 LOC)
    • 21 *.snap files (4,456 LOC)
    • 86 *.yaml files (1,326 LOC)
    • 9 *.mjs files (474 LOC)
    • 22 *.graphql files (404 LOC)
    • 24 *.sh files (297 LOC)
    • 3 *.cs files (36 LOC)
    • 23 *.html files (36 LOC)
    • 1 *.go files (33 LOC)
    • 1 *.toml files (12 LOC)
    • 2 *.rb files (8 LOC)
    • 1 *.cjs files (5 LOC)
  • " *.ts" is biggest, containing 82.15% of LOC.
  • " *.cjs" is smallest, containing 0% of LOC.


*.ts417871 LOC (82%) 2,615 files
*.js60139 LOC (11%) 327 files
*.py23586 LOC (4%) 364 files
*.snap4456 LOC (<1%) 21 files
*.yaml1326 LOC (<1%) 86 files
*.mjs474 LOC (<1%) 9 files
*.graphql404 LOC (<1%) 22 files
*.sh297 LOC (<1%) 24 files
*.cs36 LOC (<1%) 3 files
*.html36 LOC (<1%) 23 files
*.go33 LOC (<1%) 1 file
*.toml12 LOC (<1%) 1 file
*.rb8 LOC (<1%) 2 files
*.cjs5 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".
  • 5 files match defined criteria (7,380 LOC, 4.0% vs. main code). All matches are in *.json files.


*.json7380 LOC (100%) 5 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 ".*/package[-]lock[.]json".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/pnpm.*[.]ya?ml".
  • 35 files match defined criteria (1,027 LOC, 0.6% vs. main code):
    • 34 *.sh files (1,025 LOC)
    • 1 *.bat files (2 LOC)
  • " *.sh" is biggest, containing 99.81% of LOC.
  • " *.bat" is smallest, containing 0.19% of LOC.


*.sh1025 LOC (99%) 34 files
*.bat2 LOC (<1%) 1 file
Other Code
txt
mod
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]npmignore".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*[.]npmrc".
  • 10278 files match defined criteria (2,223,548 LOC, 1201.7% vs. main code):
    • 9,741 *.json files (2,155,495 LOC)
    • 409 *.md files (65,691 LOC)
    • 127 *.txt files (2,360 LOC)
    • 1 *.mod files (2 LOC)
  • " *.json" is biggest, containing 96.94% of LOC.
  • " *.mod" is smallest, containing 0% of LOC.


*.json2155495 LOC (96%) 9,741 files
*.md65691 LOC (2%) 409 files
*.txt2360 LOC (<1%) 127 files
*.mod2 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-03 23:51