azure / application-gateway-kubernetes-ingress
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
gitattributes
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.

main16606 LOC (40%) 278 files
test16697 LOC (40%) 153 files
generated192 LOC (<1%) 11 files
build and deployment223 LOC (<1%) 12 files
other7408 LOC (18%) 54 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 ".*".
  • 278 files match defined criteria (16,606 LOC, 100.0% vs. main code):
    • 250 *.go files (15,185 LOC)
    • 27 *.yaml files (1,323 LOC)
    • 1 *.tpl files (98 LOC)
  • " *.go" is biggest, containing 91.44% of LOC.
  • " *.tpl" is smallest, containing 0.59% of LOC.


*.go15185 LOC (91%) 250 files
*.yaml1323 LOC (7%) 27 files
*.tpl98 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 ".*_test[.].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/[Mm]ocks/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/test[.].*".
  • 153 files match defined criteria (16,697 LOC, 100.5% vs. main code):
    • 107 *.go files (15,353 LOC)
    • 44 *.yaml files (1,205 LOC)
    • 2 *.sh files (139 LOC)
  • " *.go" is biggest, containing 91.95% of LOC.
  • " *.sh" is smallest, containing 0.83% of LOC.


*.go15353 LOC (91%) 107 files
*.yaml1205 LOC (7%) 44 files
*.sh139 LOC (<1%) 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 ".*_generated[.][a-z]+".
  • 11 files match defined criteria (192 LOC, 1.2% vs. main code). All matches are in *.go files.


*.go192 LOC (100%) 11 files
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 ".*/[.]gitattributes".
  • 12 files match defined criteria (223 LOC, 1.3% vs. main code). All matches are in *.sh files.


*.sh223 LOC (100%) 12 files
Other Code
mod
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Ee]xamples/.*".
  • 54 files match defined criteria (7,408 LOC, 44.6% vs. main code):
    • 29 *.json files (6,345 LOC)
    • 13 *.md files (609 LOC)
    • 2 *.mod files (173 LOC)
    • 2 *.txt files (141 LOC)
    • 8 *.yaml files (140 LOC)
  • " *.json" is biggest, containing 85.65% of LOC.
  • " *.yaml" is smallest, containing 1.89% of LOC.


*.json6345 LOC (85%) 29 files
*.md609 LOC (8%) 13 files
*.mod173 LOC (2%) 2 files
*.txt141 LOC (1%) 2 files
*.yaml140 LOC (1%) 8 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 21:38