aws / aws-node-termination-handler
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
tpl
txt
mod
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.

main6049 LOC (49%) 68 files
test5192 LOC (42%) 45 files
generated0 LOC (0%) 0 files
build and deployment0 LOC (0%) 0 files
other1047 LOC (8%) 11 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 ".*".
  • 68 files match defined criteria (6,049 LOC, 100.0% vs. main code):
    • 32 *.go files (4,320 LOC)
    • 32 *.yaml files (1,407 LOC)
    • 3 *.tpl files (217 LOC)
    • 1 *.ps1 files (105 LOC)
  • " *.go" is biggest, containing 71.42% of LOC.
  • " *.ps1" is smallest, containing 1.74% of LOC.


*.go4320 LOC (71%) 32 files
*.yaml1407 LOC (23%) 32 files
*.tpl217 LOC (3%) 3 files
*.ps1105 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 ".*_test[.].*".
    • files with paths like ".*/[Tt]est/.*".
  • 45 files match defined criteria (5,192 LOC, 85.8% vs. main code):
    • 30 *.go files (4,703 LOC)
    • 13 *.yaml files (397 LOC)
    • 1 *.tpl files (53 LOC)
    • 1 *.sh files (39 LOC)
  • " *.go" is biggest, containing 90.58% of LOC.
  • " *.sh" is smallest, containing 0.75% of LOC.


*.go4703 LOC (90%) 30 files
*.yaml397 LOC (7%) 13 files
*.tpl53 LOC (1%) 1 file
*.sh39 LOC (<1%) 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 ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*/[.]dockerignore".
  • 11 files match defined criteria (1,047 LOC, 17.3% vs. main code):
    • 8 *.md files (928 LOC)
    • 1 *.mod files (106 LOC)
    • 1 *.txt files (8 LOC)
    • 1 *.json files (5 LOC)
  • " *.md" is biggest, containing 88.63% of LOC.
  • " *.json" is smallest, containing 0.48% of LOC.


*.md928 LOC (88%) 8 files
*.mod106 LOC (10%) 1 file
*.txt8 LOC (<1%) 1 file
*.json5 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 00:07