azure / fleet-networking
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
mk
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.

main10736 LOC (27%) 93 files
test26883 LOC (68%) 92 files
generated0 LOC (0%) 0 files
build and deployment126 LOC (<1%) 3 files
other1660 LOC (4%) 39 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 ".*".
  • 93 files match defined criteria (10,736 LOC, 100.0% vs. main code):
    • 51 *.go files (7,195 LOC)
    • 39 *.yaml files (3,390 LOC)
    • 3 *.tpl files (151 LOC)
  • " *.go" is biggest, containing 67.02% of LOC.
  • " *.tpl" is smallest, containing 1.41% of LOC.


*.go7195 LOC (67%) 51 files
*.yaml3390 LOC (31%) 39 files
*.tpl151 LOC (1%) 3 files
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 ".*_test[.].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/e2e/.*".
  • 92 files match defined criteria (26,883 LOC, 250.4% vs. main code):
    • 82 *.go files (26,178 LOC)
    • 7 *.sh files (641 LOC)
    • 3 *.yaml files (64 LOC)
  • " *.go" is biggest, containing 97.38% of LOC.
  • " *.yaml" is smallest, containing 0.24% of LOC.


*.go26178 LOC (97%) 82 files
*.sh641 LOC (2%) 7 files
*.yaml64 LOC (<1%) 3 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
mk
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]mk".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 3 files match defined criteria (126 LOC, 1.2% vs. main code):
    • 2 *.sh files (103 LOC)
    • 1 *.mk files (23 LOC)
  • " *.sh" is biggest, containing 81.75% of LOC.
  • " *.mk" is smallest, containing 18.25% of LOC.


*.sh103 LOC (81%) 2 files
*.mk23 LOC (18%) 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 ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*/[.]dockerignore".
  • 39 files match defined criteria (1,660 LOC, 15.5% vs. main code):
    • 13 *.md files (973 LOC)
    • 19 *.yaml files (366 LOC)
    • 2 *.sh files (168 LOC)
    • 1 *.mod files (112 LOC)
    • 1 *.py files (23 LOC)
    • 3 *.txt files (18 LOC)
  • " *.md" is biggest, containing 58.61% of LOC.
  • " *.txt" is smallest, containing 1.08% of LOC.


*.md973 LOC (58%) 13 files
*.yaml366 LOC (22%) 19 files
*.sh168 LOC (10%) 2 files
*.mod112 LOC (6%) 1 file
*.py23 LOC (1%) 1 file
*.txt18 LOC (1%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 22:14