aws / eks-anywhere-build-tooling
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
patch
txt
mk
mod
hcl
cfg
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.

main13031 LOC (6%) 116 files
test3328 LOC (1%) 27 files
generated0 LOC (0%) 0 files
build and deployment10270 LOC (4%) 173 files
other184443 LOC (87%) 327 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
hcl
tpl
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 116 files match defined criteria (13,031 LOC, 100.0% vs. main code):
    • 82 *.go files (7,440 LOC)
    • 27 *.yaml files (5,010 LOC)
    • 4 *.hcl files (542 LOC)
    • 1 *.toml files (26 LOC)
    • 1 *.tpl files (11 LOC)
    • 1 *.cfg files (2 LOC)
  • " *.go" is biggest, containing 57.09% of LOC.
  • " *.cfg" is smallest, containing 0.02% of LOC.


*.go7440 LOC (57%) 82 files
*.yaml5010 LOC (38%) 27 files
*.hcl542 LOC (4%) 4 files
*.toml26 LOC (<1%) 1 file
*.tpl11 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.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*_mock[.][a-zA-Z0-9_\-]+".
    • files with paths like ".*/[Mm]ocks/.*".
  • 27 files match defined criteria (3,328 LOC, 25.5% vs. main code):
    • 19 *.go files (3,202 LOC)
    • 8 *.sh files (126 LOC)
  • " *.go" is biggest, containing 96.21% of LOC.
  • " *.sh" is smallest, containing 3.79% of LOC.


*.go3202 LOC (96%) 19 files
*.sh126 LOC (3%) 8 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
mk
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 ".*[.]mk".
    • files with paths like ".*[.]sh".
  • 173 files match defined criteria (10,270 LOC, 78.8% vs. main code):
    • 66 *.mk files (5,337 LOC)
    • 107 *.sh files (4,933 LOC)
  • " *.mk" is biggest, containing 51.97% of LOC.
  • " *.sh" is smallest, containing 48.03% of LOC.


*.mk5337 LOC (51%) 66 files
*.sh4933 LOC (48%) 107 files
Other Code
txt
patch
mod
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]patch".
  • 327 files match defined criteria (184,443 LOC, 1415.4% vs. main code):
    • 84 *.txt files (93,167 LOC)
    • 148 *.patch files (67,822 LOC)
    • 23 *.json files (21,574 LOC)
    • 68 *.md files (1,646 LOC)
    • 4 *.mod files (234 LOC)
  • " *.txt" is biggest, containing 50.51% of LOC.
  • " *.mod" is smallest, containing 0.13% of LOC.


*.txt93167 LOC (50%) 84 files
*.patch67822 LOC (36%) 148 files
*.json21574 LOC (11%) 23 files
*.md1646 LOC (<1%) 68 files
*.mod234 LOC (<1%) 4 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 00:37