aws / aws-app-mesh-examples
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
mod
cfg
txt
proto
tpl
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.

main50045 LOC (59%) 352 files
test47 LOC (<1%) 3 files
generated1115 LOC (1%) 1 file
build and deployment9410 LOC (11%) 201 files
other24001 LOC (28%) 328 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cfg
proto
tpl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 352 files match defined criteria (50,045 LOC, 100.0% vs. main code):
    • 187 *.yaml files (39,883 LOC)
    • 48 *.go files (6,263 LOC)
    • 51 *.py files (1,758 LOC)
    • 25 *.rb files (701 LOC)
    • 16 *.cfg files (425 LOC)
    • 2 *.js files (266 LOC)
    • 2 *.html files (174 LOC)
    • 5 *.toml files (143 LOC)
    • 4 *.proto files (143 LOC)
    • 8 *.ts files (143 LOC)
    • 2 *.tpl files (104 LOC)
    • 1 *.scss files (33 LOC)
    • 1 *.css files (9 LOC)
  • " *.yaml" is biggest, containing 79.69% of LOC.
  • " *.css" is smallest, containing 0.02% of LOC.


*.yaml39883 LOC (79%) 187 files
*.go6263 LOC (12%) 48 files
*.py1758 LOC (3%) 51 files
*.rb701 LOC (1%) 25 files
*.cfg425 LOC (<1%) 16 files
*.js266 LOC (<1%) 2 files
*.html174 LOC (<1%) 2 files
*.toml143 LOC (<1%) 5 files
*.proto143 LOC (<1%) 4 files
*.ts143 LOC (<1%) 8 files
*.tpl104 LOC (<1%) 2 files
*.scss33 LOC (<1%) 1 file
*.css9 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 ".*[.]spec[.]ts".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
  • 3 files match defined criteria (47 LOC, 0.1% vs. main code). All matches are in *.ts files.


*.ts47 LOC (100%) 3 files
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 (1,115 LOC, 2.2% vs. main code). All matches are in *.json files.


*.json1115 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/package[-]lock[.]json".
  • 201 files match defined criteria (9,410 LOC, 18.8% vs. main code). All matches are in *.sh files.


*.sh9410 LOC (100%) 201 files
Other Code
mod
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
  • 328 files match defined criteria (24,001 LOC, 48.0% vs. main code):
    • 80 *.md files (11,525 LOC)
    • 143 *.json files (8,145 LOC)
    • 27 *.yaml files (2,681 LOC)
    • 20 *.sh files (1,042 LOC)
    • 43 *.mod files (317 LOC)
    • 2 *.go files (231 LOC)
    • 13 *.txt files (60 LOC)
  • " *.md" is biggest, containing 48.02% of LOC.
  • " *.txt" is smallest, containing 0.25% of LOC.


*.md11525 LOC (48%) 80 files
*.json8145 LOC (33%) 143 files
*.yaml2681 LOC (11%) 27 files
*.sh1042 LOC (4%) 20 files
*.mod317 LOC (1%) 43 files
*.go231 LOC (<1%) 2 files
*.txt60 LOC (<1%) 13 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-03 23:56