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
gitmodules
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.

main2514 LOC (39%) 40 files
test1904 LOC (30%) 21 files
generated864 LOC (13%) 2 files
build and deployment0 LOC (0%) 0 files
other1018 LOC (16%) 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 ".*".
  • 40 files match defined criteria (2,514 LOC, 100.0% vs. main code):
    • 11 *.go files (1,172 LOC)
    • 22 *.yaml files (1,059 LOC)
    • 1 *.lua files (151 LOC)
    • 1 *.tpl files (61 LOC)
    • 3 *.html files (36 LOC)
    • 2 *.js files (35 LOC)
  • " *.go" is biggest, containing 46.62% of LOC.
  • " *.js" is smallest, containing 1.39% of LOC.


*.go1172 LOC (46%) 11 files
*.yaml1059 LOC (42%) 22 files
*.lua151 LOC (6%) 1 file
*.tpl61 LOC (2%) 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_.*".
  • 21 files match defined criteria (1,904 LOC, 75.7% vs. main code):
    • 5 *.go files (1,124 LOC)
    • 13 *.yaml files (569 LOC)
    • 1 *.lua files (109 LOC)
    • 2 *.py files (102 LOC)
  • " *.go" is biggest, containing 59.03% of LOC.
  • " *.py" is smallest, containing 5.36% of LOC.


*.go1124 LOC (59%) 5 files
*.yaml569 LOC (29%) 13 files
*.lua109 LOC (5%) 1 file
*.py102 LOC (5%) 2 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".
  • 2 files match defined criteria (864 LOC, 34.4% vs. main code). All matches are in *.json files.


*.json864 LOC (100%) 2 files
Other Code
mod
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
  • 9 files match defined criteria (1,018 LOC, 40.5% vs. main code):
    • 4 *.json files (892 LOC)
    • 2 *.md files (66 LOC)
    • 1 *.mod files (53 LOC)
    • 2 *.txt files (7 LOC)
  • " *.json" is biggest, containing 87.62% of LOC.
  • " *.txt" is smallest, containing 0.69% of LOC.


*.json892 LOC (87%) 4 files
*.md66 LOC (6%) 2 files
*.mod53 LOC (5%) 1 file
*.txt7 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-11 01:44