aws / eks-distro
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
patch
mod
mk
tpl
diff
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.

main1442 LOC (<1%) 25 files
test1042 LOC (<1%) 9 files
generated0 LOC (0%) 0 files
build and deployment4915 LOC (<1%) 98 files
other589947 LOC (98%) 897 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 ".*".
  • 25 files match defined criteria (1,442 LOC, 100.0% vs. main code):
    • 21 *.go files (1,229 LOC)
    • 1 *.tpl files (176 LOC)
    • 2 *.yaml files (34 LOC)
    • 1 *.toml files (3 LOC)
  • " *.go" is biggest, containing 85.23% of LOC.
  • " *.toml" is smallest, containing 0.21% of LOC.


*.go1229 LOC (85%) 21 files
*.tpl176 LOC (12%) 1 file
*.yaml34 LOC (2%) 2 files
*.toml3 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
tpl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*[-]tests[-].*".
    • files with paths like ".*_test[.].*".
  • 9 files match defined criteria (1,042 LOC, 72.3% vs. main code):
    • 2 *.go files (439 LOC)
    • 2 *.tpl files (333 LOC)
    • 3 *.yaml files (136 LOC)
    • 2 *.sh files (134 LOC)
  • " *.go" is biggest, containing 42.13% of LOC.
  • " *.sh" is smallest, containing 12.86% of LOC.


*.go439 LOC (42%) 2 files
*.tpl333 LOC (31%) 2 files
*.yaml136 LOC (13%) 3 files
*.sh134 LOC (12%) 2 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]mk".
  • 98 files match defined criteria (4,915 LOC, 340.8% vs. main code):
    • 72 *.sh files (3,184 LOC)
    • 26 *.mk files (1,731 LOC)
  • " *.sh" is biggest, containing 64.78% of LOC.
  • " *.mk" is smallest, containing 35.22% of LOC.


*.sh3184 LOC (64%) 72 files
*.mk1731 LOC (35%) 26 files
Other Code
patch
txt
mod
diff
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 ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*[.]patch".
    • files with paths like ".*[.]diff".
  • 897 files match defined criteria (589,947 LOC, 40911.7% vs. main code):
    • 460 *.patch files (384,517 LOC)
    • 215 *.txt files (184,035 LOC)
    • 160 *.mod files (16,106 LOC)
    • 1 *.diff files (3,402 LOC)
    • 3 *.json files (1,209 LOC)
    • 58 *.md files (678 LOC)
  • " *.patch" is biggest, containing 65.18% of LOC.
  • " *.md" is smallest, containing 0.11% of LOC.


*.patch384517 LOC (65%) 460 files
*.txt184035 LOC (31%) 215 files
*.mod16106 LOC (2%) 160 files
*.diff3402 LOC (<1%) 1 file
*.json1209 LOC (<1%) 3 files
*.md678 LOC (<1%) 58 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 00:13