aws / eks-anywhere
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
ini
mod
patch
gitmodules
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.

main119972 LOC (40%) 953 files
test163224 LOC (55%) 685 files
generated0 LOC (0%) 0 files
build and deployment1638 LOC (<1%) 42 files
other9337 LOC (3%) 86 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 953 files match defined criteria (119,972 LOC, 100.0% vs. main code):
    • 863 *.go files (92,870 LOC)
    • 88 *.yaml files (27,065 LOC)
    • 1 *.py files (23 LOC)
    • 1 *.toml files (14 LOC)
  • " *.go" is biggest, containing 77.41% of LOC.
  • " *.toml" is smallest, containing 0.01% of LOC.


*.go92870 LOC (77%) 863 files
*.yaml27065 LOC (22%) 88 files
*.py23 LOC (<1%) 1 file
*.toml14 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 ".*/[Tt]est/.*".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/[Mm]ocks/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/e2e/.*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*[-]test[-].*".
  • 685 files match defined criteria (163,224 LOC, 136.1% vs. main code):
    • 673 *.go files (159,019 LOC)
    • 12 *.yaml files (4,205 LOC)
  • " *.go" is biggest, containing 97.42% of LOC.
  • " *.yaml" is smallest, containing 2.58% of LOC.


*.go159019 LOC (97%) 673 files
*.yaml4205 LOC (2%) 12 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/docker[-]compose[.]yaml".
  • 42 files match defined criteria (1,638 LOC, 1.4% vs. main code). All matches are in *.sh files.


*.sh1638 LOC (100%) 42 files
Other Code
txt
mod
ini
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*[.]ini".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 86 files match defined criteria (9,337 LOC, 7.8% vs. main code):
    • 60 *.md files (5,335 LOC)
    • 7 *.txt files (2,815 LOC)
    • 11 *.json files (660 LOC)
    • 7 *.mod files (516 LOC)
    • 1 *.ini files (11 LOC)
  • " *.md" is biggest, containing 57.14% of LOC.
  • " *.ini" is smallest, containing 0.12% of LOC.


*.md5335 LOC (57%) 60 files
*.txt2815 LOC (30%) 7 files
*.json660 LOC (7%) 11 files
*.mod516 LOC (5%) 7 files
*.ini11 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 00:36