aws / codecatalyst-blueprints
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
gitattributes
snap
cfg
editorconfig
npmrc
ini
eslintignore
properties
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.

main31880 LOC (60%) 353 files
test8735 LOC (16%) 52 files
generated2563 LOC (4%) 3 files
build and deployment304 LOC (<1%) 14 files
other9236 LOC (17%) 192 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 ".*".
  • 353 files match defined criteria (31,880 LOC, 100.0% vs. main code):
    • 212 *.ts files (17,777 LOC)
    • 71 *.py files (7,534 LOC)
    • 59 *.tsx files (6,192 LOC)
    • 3 *.js files (135 LOC)
    • 3 *.yaml files (131 LOC)
    • 2 *.java files (76 LOC)
    • 1 *.html files (25 LOC)
    • 1 *.css files (8 LOC)
    • 1 *.cfg files (2 LOC)
  • " *.ts" is biggest, containing 55.76% of LOC.
  • " *.cfg" is smallest, containing 0.01% of LOC.


*.ts17777 LOC (55%) 212 files
*.py7534 LOC (23%) 71 files
*.tsx6192 LOC (19%) 59 files
*.js135 LOC (<1%) 3 files
*.yaml131 LOC (<1%) 3 files
*.java76 LOC (<1%) 2 files
*.html25 LOC (<1%) 1 file
*.css8 LOC (<1%) 1 file
*.cfg2 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 ".*[-]test[-].*".
    • files with paths like ".*[.]spec[.]ts".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[.]snap".
    • 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 ".*__tests__.*".
    • files with paths like ".*_tests[.].*".
  • 52 files match defined criteria (8,735 LOC, 27.4% vs. main code):
    • 3 *.snap files (3,886 LOC)
    • 24 *.ts files (3,209 LOC)
    • 22 *.py files (1,592 LOC)
    • 2 *.java files (40 LOC)
    • 1 *.js files (8 LOC)
  • " *.snap" is biggest, containing 44.49% of LOC.
  • " *.js" is smallest, containing 0.09% of LOC.


*.snap3886 LOC (44%) 3 files
*.ts3209 LOC (36%) 24 files
*.py1592 LOC (18%) 22 files
*.java40 LOC (<1%) 2 files
*.js8 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 ".*/__generated__/.*".
    • files with paths like ".*/package[-]lock[.]json".
  • 3 files match defined criteria (2,563 LOC, 8.0% vs. main code). All matches are in *.json files.


*.json2563 LOC (100%) 3 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 ".*/package[.]json".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*[.]gradle".
    • files with paths like ".*/pom[.]xml".
    • files with paths like ".*[.]bat".
  • 14 files match defined criteria (304 LOC, 1.0% vs. main code):
    • 2 *.xml files (119 LOC)
    • 9 *.sh files (77 LOC)
    • 1 *.bat files (68 LOC)
    • 2 *.gradle files (40 LOC)
  • " *.xml" is biggest, containing 39.14% of LOC.
  • " *.gradle" is smallest, containing 13.16% of LOC.


*.xml119 LOC (39%) 2 files
*.sh77 LOC (25%) 9 files
*.bat68 LOC (22%) 1 file
*.gradle40 LOC (13%) 2 files
Other Code
txt
ini
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 ".*/[.]npmignore".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]ini".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*[.]npmrc".
    • files with paths like ".*[.]editorconfig".
  • 192 files match defined criteria (9,236 LOC, 29.0% vs. main code):
    • 113 *.json files (6,692 LOC)
    • 39 *.md files (1,646 LOC)
    • 6 *.py files (349 LOC)
    • 5 *.ts files (190 LOC)
    • 1 *.ipynb files (145 LOC)
    • 6 *.java files (122 LOC)
    • 21 *.txt files (88 LOC)
    • 1 *.ini files (4 LOC)
  • " *.json" is biggest, containing 72.46% of LOC.
  • " *.ini" is smallest, containing 0.04% of LOC.


*.json6692 LOC (72%) 113 files
*.md1646 LOC (17%) 39 files
*.py349 LOC (3%) 6 files
*.ts190 LOC (2%) 5 files
*.ipynb145 LOC (1%) 1 file
*.java122 LOC (1%) 6 files
*.txt88 LOC (<1%) 21 files
*.ini4 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 00:38