azure / azure-container-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
mod
txt
proto
gitattributes
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.

main65779 LOC (42%) 576 files
test84427 LOC (54%) 447 files
generated1084 LOC (<1%) 4 files
build and deployment587 LOC (<1%) 16 files
other3290 LOC (2%) 53 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 576 files match defined criteria (65,779 LOC, 100.0% vs. main code):
    • 483 *.go files (60,844 LOC)
    • 75 *.yaml files (4,086 LOC)
    • 9 *.ps1 files (467 LOC)
    • 4 *.proto files (148 LOC)
    • 2 *.c files (118 LOC)
    • 2 *.py files (100 LOC)
    • 1 *.h files (16 LOC)
  • " *.go" is biggest, containing 92.5% of LOC.
  • " *.h" is smallest, containing 0.02% of LOC.


*.go60844 LOC (92%) 483 files
*.yaml4086 LOC (6%) 75 files
*.ps1467 LOC (<1%) 9 files
*.proto148 LOC (<1%) 4 files
*.c118 LOC (<1%) 2 files
*.py100 LOC (<1%) 2 files
*.h16 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 ".*_test[.].*".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/[Mm]ocks/.*".
    • files with paths like ".*_mock[.][a-zA-Z0-9_\-]+".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*[-]tests[-].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/e2e/.*".
  • 447 files match defined criteria (84,427 LOC, 128.3% vs. main code):
    • 265 *.go files (70,097 LOC)
    • 167 *.yaml files (12,907 LOC)
    • 15 *.sh files (1,423 LOC)
  • " *.go" is biggest, containing 83.03% of LOC.
  • " *.sh" is smallest, containing 1.69% of LOC.


*.go70097 LOC (83%) 265 files
*.yaml12907 LOC (15%) 167 files
*.sh1423 LOC (1%) 15 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]+".
  • 4 files match defined criteria (1,084 LOC, 1.6% vs. main code). All matches are in *.go files.


*.go1084 LOC (100%) 4 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]mk".
    • files with paths like ".*/[.]gitattributes".
  • 16 files match defined criteria (587 LOC, 0.9% vs. main code):
    • 15 *.sh files (567 LOC)
    • 1 *.mk files (20 LOC)
  • " *.sh" is biggest, containing 96.59% of LOC.
  • " *.mk" is smallest, containing 3.41% of LOC.


*.sh567 LOC (96%) 15 files
*.mk20 LOC (3%) 1 file
Other Code
mod
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*/[.]gitignore".
  • 53 files match defined criteria (3,290 LOC, 5.0% vs. main code):
    • 9 *.json files (1,359 LOC)
    • 8 *.yaml files (789 LOC)
    • 9 *.mod files (652 LOC)
    • 23 *.md files (466 LOC)
    • 2 *.ps1 files (22 LOC)
    • 2 *.txt files (2 LOC)
  • " *.json" is biggest, containing 41.31% of LOC.
  • " *.txt" is smallest, containing 0.06% of LOC.


*.json1359 LOC (41%) 9 files
*.yaml789 LOC (23%) 8 files
*.mod652 LOC (19%) 9 files
*.md466 LOC (14%) 23 files
*.ps122 LOC (<1%) 2 files
*.txt2 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 21:15