aws / aws-app-mesh-controller-for-k8s
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
cfg
txt
tpl
mod
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.

main28472 LOC (30%) 229 files
test60907 LOC (66%) 215 files
generated0 LOC (0%) 0 files
build and deployment630 LOC (<1%) 16 files
other1954 LOC (2%) 24 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
tpl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 229 files match defined criteria (28,472 LOC, 100.0% vs. main code):
    • 149 *.go files (18,077 LOC)
    • 76 *.yaml files (10,198 LOC)
    • 4 *.tpl files (197 LOC)
  • " *.go" is biggest, containing 63.49% of LOC.
  • " *.tpl" is smallest, containing 0.69% of LOC.


*.go18077 LOC (63%) 149 files
*.yaml10198 LOC (35%) 76 files
*.tpl197 LOC (<1%) 4 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/[Mm]ocks/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/e2e/.*".
    • files with paths like ".*/test_.*".
  • 215 files match defined criteria (60,907 LOC, 213.9% vs. main code):
    • 187 *.go files (59,700 LOC)
    • 3 *.yaml files (703 LOC)
    • 14 *.sh files (231 LOC)
    • 7 *.cfg files (185 LOC)
    • 4 *.py files (88 LOC)
  • " *.go" is biggest, containing 98.02% of LOC.
  • " *.py" is smallest, containing 0.14% of LOC.


*.go59700 LOC (98%) 187 files
*.yaml703 LOC (1%) 3 files
*.sh231 LOC (<1%) 14 files
*.cfg185 LOC (<1%) 7 files
*.py88 LOC (<1%) 4 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 16 files match defined criteria (630 LOC, 2.2% vs. main code). All matches are in *.sh files.


*.sh630 LOC (100%) 16 files
Other Code
txt
mod
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/go[.]mod".
  • 24 files match defined criteria (1,954 LOC, 6.9% vs. main code):
    • 5 *.txt files (815 LOC)
    • 4 *.md files (637 LOC)
    • 5 *.json files (254 LOC)
    • 3 *.mod files (207 LOC)
    • 7 *.yaml files (41 LOC)
  • " *.txt" is biggest, containing 41.71% of LOC.
  • " *.yaml" is smallest, containing 2.1% of LOC.


*.txt815 LOC (41%) 5 files
*.md637 LOC (32%) 4 files
*.json254 LOC (12%) 5 files
*.mod207 LOC (10%) 3 files
*.yaml41 LOC (2%) 7 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-03 23:57