aws / eks-pod-identity-agent
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
txt
tpl
mk
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.

main1874 LOC (47%) 30 files
test1630 LOC (41%) 14 files
generated187 LOC (4%) 3 files
build and deployment106 LOC (2%) 5 files
other166 LOC (4%) 8 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 ".*".
  • 30 files match defined criteria (1,874 LOC, 100.0% vs. main code):
    • 24 *.go files (1,327 LOC)
    • 5 *.yaml files (473 LOC)
    • 1 *.tpl files (74 LOC)
  • " *.go" is biggest, containing 70.81% of LOC.
  • " *.tpl" is smallest, containing 3.95% of LOC.


*.go1327 LOC (70%) 24 files
*.yaml473 LOC (25%) 5 files
*.tpl74 LOC (3%) 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 ".*_test[.].*".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/[Tt]est/.*".
  • 14 files match defined criteria (1,630 LOC, 87.0% vs. main code). All matches are in *.go files.


*.go1630 LOC (100%) 14 files
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with any line of content like "//[ ]*Generated by .*".
  • 3 files match defined criteria (187 LOC, 10.0% vs. main code). All matches are in *.go files.


*.go187 LOC (100%) 3 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 ".*[.]mk".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 5 files match defined criteria (106 LOC, 5.7% vs. main code):
    • 4 *.sh files (86 LOC)
    • 1 *.mk files (20 LOC)
  • " *.sh" is biggest, containing 81.13% of LOC.
  • " *.mk" is smallest, containing 18.87% of LOC.


*.sh86 LOC (81%) 4 files
*.mk20 LOC (18%) 1 file
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 ".*/go[.]mod".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
  • 8 files match defined criteria (166 LOC, 8.9% vs. main code):
    • 5 *.md files (109 LOC)
    • 2 *.mod files (56 LOC)
    • 1 *.txt files (1 LOC)
  • " *.md" is biggest, containing 65.66% of LOC.
  • " *.txt" is smallest, containing 0.6% of LOC.


*.md109 LOC (65%) 5 files
*.mod56 LOC (33%) 2 files
*.txt1 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 01:00