apache / trafficserver-ingress-controller
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
lua
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.

main1950 LOC (31%) 27 files
test1991 LOC (32%) 22 files
generated1000 LOC (16%) 2 files
build and deployment0 LOC (0%) 0 files
other1156 LOC (18%) 9 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
lua
tpl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 27 files match defined criteria (1,950 LOC, 100.0% vs. main code):
    • 11 *.go files (1,178 LOC)
    • 9 *.yaml files (480 LOC)
    • 1 *.lua files (160 LOC)
    • 1 *.tpl files (61 LOC)
    • 3 *.html files (36 LOC)
    • 2 *.js files (35 LOC)
  • " *.go" is biggest, containing 60.41% of LOC.
  • " *.js" is smallest, containing 1.79% of LOC.


*.go1178 LOC (60%) 11 files
*.yaml480 LOC (24%) 9 files
*.lua160 LOC (8%) 1 file
*.tpl61 LOC (3%) 1 file
*.html36 LOC (1%) 3 files
*.js35 LOC (1%) 2 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
lua
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
  • 22 files match defined criteria (1,991 LOC, 102.1% vs. main code):
    • 5 *.go files (1,124 LOC)
    • 14 *.yaml files (636 LOC)
    • 2 *.py files (120 LOC)
    • 1 *.lua files (111 LOC)
  • " *.go" is biggest, containing 56.45% of LOC.
  • " *.lua" is smallest, containing 5.58% of LOC.


*.go1124 LOC (56%) 5 files
*.yaml636 LOC (31%) 14 files
*.py120 LOC (6%) 2 files
*.lua111 LOC (5%) 1 file
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".
  • 2 files match defined criteria (1,000 LOC, 51.3% vs. main code). All matches are in *.json files.


*.json1000 LOC (100%) 2 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 ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*/go[.]mod".
  • 9 files match defined criteria (1,156 LOC, 59.3% vs. main code):
    • 4 *.json files (1,028 LOC)
    • 2 *.md files (68 LOC)
    • 1 *.mod files (53 LOC)
    • 2 *.txt files (7 LOC)
  • " *.json" is biggest, containing 88.93% of LOC.
  • " *.txt" is smallest, containing 0.61% of LOC.


*.json1028 LOC (88%) 4 files
*.md68 LOC (5%) 2 files
*.mod53 LOC (4%) 1 file
*.txt7 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 20:10