aws / aws-pdk
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
ejs
snap
gitattributes
npmignore
prettierignore
txt
properties
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.

main42308 LOC (29%) 391 files
test85045 LOC (58%) 172 files
generated0 LOC (0%) 0 files
build and deployment267 LOC (<1%) 8 files
other17588 LOC (12%) 140 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
ejs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 391 files match defined criteria (42,308 LOC, 100.0% vs. main code):
    • 275 *.ts files (26,743 LOC)
    • 106 *.ejs files (13,543 LOC)
    • 5 *.mustache files (1,823 LOC)
    • 2 *.js files (93 LOC)
    • 2 *.py files (61 LOC)
    • 1 *.java files (45 LOC)
  • " *.ts" is biggest, containing 63.21% of LOC.
  • " *.java" is smallest, containing 0.11% of LOC.


*.ts26743 LOC (63%) 275 files
*.ejs13543 LOC (32%) 106 files
*.mustache1823 LOC (4%) 5 files
*.js93 LOC (<1%) 2 files
*.py61 LOC (<1%) 2 files
*.java45 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
snap
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*[.]snap".
    • files with paths like ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/[Ss]pecs/.*".
    • files with paths like ".*/test_.*".
  • 172 files match defined criteria (85,045 LOC, 201.0% vs. main code):
    • 53 *.snap files (72,990 LOC)
    • 93 *.ts files (10,032 LOC)
    • 24 *.yaml files (1,979 LOC)
    • 1 *.java files (43 LOC)
    • 1 *.html files (1 LOC)
  • " *.snap" is biggest, containing 85.83% of LOC.
  • " *.html" is smallest, containing 0% of LOC.


*.snap72990 LOC (85%) 53 files
*.ts10032 LOC (11%) 93 files
*.yaml1979 LOC (2%) 24 files
*.java43 LOC (<1%) 1 file
*.html1 LOC (<1%) 1 file
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 ".*/pnpm.*[.]ya?ml".
    • 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 ".*/[.]gitattributes".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/pom[.]xml".
  • 8 files match defined criteria (267 LOC, 0.6% vs. main code):
    • 1 *.xml files (131 LOC)
    • 1 *.bat files (71 LOC)
    • 5 *.sh files (50 LOC)
    • 1 *.yaml files (15 LOC)
  • " *.xml" is biggest, containing 49.06% of LOC.
  • " *.yaml" is smallest, containing 5.62% of LOC.


*.xml131 LOC (49%) 1 file
*.bat71 LOC (26%) 1 file
*.sh50 LOC (18%) 5 files
*.yaml15 LOC (5%) 1 file
Other Code
snap
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 ".*/[.]npmignore".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[Dd]ocumentation/.*".
    • files with paths like ".*[.]npmrc".
    • files with paths like ".*[.]txt".
  • 140 files match defined criteria (17,588 LOC, 41.6% vs. main code):
    • 55 *.json files (11,445 LOC)
    • 30 *.md files (3,477 LOC)
    • 39 *.mustache files (1,926 LOC)
    • 5 *.snap files (526 LOC)
    • 10 *.ts files (204 LOC)
    • 1 *.properties files (10 LOC)
  • " *.json" is biggest, containing 65.07% of LOC.
  • " *.properties" is smallest, containing 0.06% of LOC.


*.json11445 LOC (65%) 55 files
*.md3477 LOC (19%) 30 files
*.mustache1926 LOC (10%) 39 files
*.snap526 LOC (2%) 5 files
*.ts204 LOC (1%) 10 files
*.properties10 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 00:38