aws / modern-data-architecture-accelerator
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
properties
cfg
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.

main47680 LOC (29%) 556 files
test18065 LOC (11%) 329 files
generated4445 LOC (2%) 1 file
build and deployment545 LOC (<1%) 26 files
other93304 LOC (56%) 652 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 556 files match defined criteria (47,680 LOC, 100.0% vs. main code):
    • 289 *.ts files (32,282 LOC)
    • 149 *.py files (9,233 LOC)
    • 98 *.yaml files (5,374 LOC)
    • 8 *.tf files (355 LOC)
    • 9 *.xml files (327 LOC)
    • 1 *.js files (54 LOC)
    • 1 *.toml files (45 LOC)
    • 1 *.cfg files (10 LOC)
  • " *.ts" is biggest, containing 67.71% of LOC.
  • " *.cfg" is smallest, containing 0.02% of LOC.


*.ts32282 LOC (67%) 289 files
*.py9233 LOC (19%) 149 files
*.yaml5374 LOC (11%) 98 files
*.tf355 LOC (<1%) 8 files
*.xml327 LOC (<1%) 9 files
*.js54 LOC (<1%) 1 file
*.toml45 LOC (<1%) 1 file
*.cfg10 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 ".*_test[.].*".
    • files with paths like ".*/test[.].*".
    • 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_.*".
  • 329 files match defined criteria (18,065 LOC, 37.9% vs. main code):
    • 143 *.ts files (14,505 LOC)
    • 46 *.yaml files (2,505 LOC)
    • 115 *.js files (823 LOC)
    • 11 *.py files (104 LOC)
    • 1 *.ipynb files (103 LOC)
    • 10 *.sh files (21 LOC)
    • 2 *.xml files (2 LOC)
    • 1 *.ps1 files (2 LOC)
  • " *.ts" is biggest, containing 80.29% of LOC.
  • " *.ps1" is smallest, containing 0.01% of LOC.


*.ts14505 LOC (80%) 143 files
*.yaml2505 LOC (13%) 46 files
*.js823 LOC (4%) 115 files
*.py104 LOC (<1%) 11 files
*.ipynb103 LOC (<1%) 1 file
*.sh21 LOC (<1%) 10 files
*.xml2 LOC (<1%) 2 files
*.ps12 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".
  • 1 file matches defined criteria (4,445 LOC, 9.3% vs. main code). All matches are in *.json files.


*.json4445 LOC (100%) 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 ".*[.]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".
  • 26 files match defined criteria (545 LOC, 1.1% vs. main code). All matches are in *.sh files.


*.sh545 LOC (100%) 26 files
Other Code
properties
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]npmignore".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 652 files match defined criteria (93,304 LOC, 195.7% vs. main code):
    • 461 *.json files (54,042 LOC)
    • 179 *.md files (38,597 LOC)
    • 3 *.properties files (445 LOC)
    • 9 *.txt files (220 LOC)
  • " *.json" is biggest, containing 57.92% of LOC.
  • " *.txt" is smallest, containing 0.24% of LOC.


*.json54042 LOC (57%) 461 files
*.md38597 LOC (41%) 179 files
*.properties445 LOC (<1%) 3 files
*.txt220 LOC (<1%) 9 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 01:03