aws / karpenter-provider-aws
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
mod
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.

main22185 LOC (19%) 171 files
test28974 LOC (25%) 123 files
generated2454 LOC (2%) 1 file
build and deployment3827 LOC (3%) 202 files
other54366 LOC (48%) 252 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 ".*".
  • 171 files match defined criteria (22,185 LOC, 100.0% vs. main code):
    • 115 *.go files (15,250 LOC)
    • 39 *.yaml files (6,380 LOC)
    • 9 *.html files (176 LOC)
    • 1 *.tpl files (136 LOC)
    • 2 *.scss files (124 LOC)
    • 2 *.py files (60 LOC)
    • 1 *.js files (24 LOC)
    • 1 *.toml files (23 LOC)
    • 1 *.xml files (12 LOC)
  • " *.go" is biggest, containing 68.74% of LOC.
  • " *.xml" is smallest, containing 0.05% of LOC.


*.go15250 LOC (68%) 115 files
*.yaml6380 LOC (28%) 39 files
*.html176 LOC (<1%) 9 files
*.tpl136 LOC (<1%) 1 file
*.scss124 LOC (<1%) 2 files
*.py60 LOC (<1%) 2 files
*.js24 LOC (<1%) 1 file
*.toml23 LOC (<1%) 1 file
*.xml12 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 ".*/e2e/.*".
    • files with paths like ".*[-]tests[-].*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/[Tt]est/.*".
  • 123 files match defined criteria (28,974 LOC, 130.6% vs. main code):
    • 111 *.go files (28,236 LOC)
    • 5 *.yaml files (573 LOC)
    • 7 *.sh files (165 LOC)
  • " *.go" is biggest, containing 97.45% of LOC.
  • " *.sh" is smallest, containing 0.57% of LOC.


*.go28236 LOC (97%) 111 files
*.yaml573 LOC (1%) 5 files
*.sh165 LOC (<1%) 7 files
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/package[-]lock[.]json".
  • 1 file matches defined criteria (2,454 LOC, 11.1% vs. main code). All matches are in *.json files.


*.json2454 LOC (100%) 1 file
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".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
  • 202 files match defined criteria (3,827 LOC, 17.3% vs. main code). All matches are in *.sh files.


*.sh3827 LOC (100%) 202 files
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 ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
  • 252 files match defined criteria (54,366 LOC, 245.1% vs. main code):
    • 180 *.md files (31,276 LOC)
    • 28 *.json files (21,285 LOC)
    • 32 *.yaml files (1,497 LOC)
    • 5 *.mod files (212 LOC)
    • 7 *.txt files (96 LOC)
  • " *.md" is biggest, containing 57.53% of LOC.
  • " *.txt" is smallest, containing 0.18% of LOC.


*.md31276 LOC (57%) 180 files
*.json21285 LOC (39%) 28 files
*.yaml1497 LOC (2%) 32 files
*.mod212 LOC (<1%) 5 files
*.txt96 LOC (<1%) 7 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 00:11