aws / amazon-vpc-cni-k8s
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
tpl
mod
proto
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.

main20801 LOC (34%) 138 files
test29015 LOC (48%) 159 files
generated0 LOC (0%) 0 files
build and deployment1206 LOC (2%) 24 files
other9096 LOC (15%) 28 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
tpl
proto
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 138 files match defined criteria (20,801 LOC, 100.0% vs. main code):
    • 82 *.go files (13,468 LOC)
    • 53 *.yaml files (7,094 LOC)
    • 2 *.tpl files (153 LOC)
    • 1 *.proto files (86 LOC)
  • " *.go" is biggest, containing 64.75% of LOC.
  • " *.proto" is smallest, containing 0.41% of LOC.


*.go13468 LOC (64%) 82 files
*.yaml7094 LOC (34%) 53 files
*.tpl153 LOC (<1%) 2 files
*.proto86 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 ".*_test[.].*".
    • files with paths like ".*_tests[.].*".
    • 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_.*".
  • 159 files match defined criteria (29,015 LOC, 139.5% vs. main code):
    • 147 *.go files (28,488 LOC)
    • 8 *.yaml files (237 LOC)
    • 3 *.sh files (233 LOC)
    • 1 *.tpl files (57 LOC)
  • " *.go" is biggest, containing 98.18% of LOC.
  • " *.tpl" is smallest, containing 0.2% of LOC.


*.go28488 LOC (98%) 147 files
*.yaml237 LOC (<1%) 8 files
*.sh233 LOC (<1%) 3 files
*.tpl57 LOC (<1%) 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".
  • 24 files match defined criteria (1,206 LOC, 5.8% vs. main code). All matches are in *.sh files.


*.sh1206 LOC (100%) 24 files
Other Code
txt
mod
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 ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*/[.]dockerignore".
  • 28 files match defined criteria (9,096 LOC, 43.7% vs. main code):
    • 3 *.json files (5,674 LOC)
    • 19 *.md files (2,271 LOC)
    • 4 *.txt files (944 LOC)
    • 2 *.mod files (207 LOC)
  • " *.json" is biggest, containing 62.38% of LOC.
  • " *.mod" is smallest, containing 2.28% of LOC.


*.json5674 LOC (62%) 3 files
*.md2271 LOC (24%) 19 files
*.txt944 LOC (10%) 4 files
*.mod207 LOC (2%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-03 23:52