azure / azure-workload-identity
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
tpl
txt
csproj
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.

main5775 LOC (39%) 117 files
test5720 LOC (39%) 38 files
generated831 LOC (5%) 1 file
build and deployment385 LOC (2%) 6 files
other1803 LOC (12%) 24 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 ".*".
  • 117 files match defined criteria (5,775 LOC, 100.0% vs. main code):
    • 56 *.go files (3,947 LOC)
    • 58 *.yaml files (1,713 LOC)
    • 2 *.tpl files (110 LOC)
    • 1 *.toml files (5 LOC)
  • " *.go" is biggest, containing 68.35% of LOC.
  • " *.toml" is smallest, containing 0.09% of LOC.


*.go3947 LOC (68%) 56 files
*.yaml1713 LOC (29%) 58 files
*.tpl110 LOC (1%) 2 files
*.toml5 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 ".*_mock[.][a-zA-Z0-9_\-]+".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/e2e/.*".
  • 38 files match defined criteria (5,720 LOC, 99.0% vs. main code). All matches are in *.go files.


*.go5720 LOC (100%) 38 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".
  • 1 file matches defined criteria (831 LOC, 14.4% vs. main code). All matches are in *.json files.


*.json831 LOC (100%) 1 file
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 ".*[.]csproj".
    • files with paths like ".*/pom[.]xml".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
  • 6 files match defined criteria (385 LOC, 6.7% vs. main code). All matches are in *.sh files.


*.sh385 LOC (100%) 6 files
Other Code
mod
csproj
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 ".*/go[.]mod".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
  • 24 files match defined criteria (1,803 LOC, 31.2% vs. main code):
    • 2 *.json files (846 LOC)
    • 3 *.mod files (284 LOC)
    • 5 *.md files (170 LOC)
    • 2 *.go files (112 LOC)
    • 1 *.xml files (95 LOC)
    • 2 *.cs files (89 LOC)
    • 2 *.java files (69 LOC)
    • 1 *.js files (49 LOC)
    • 2 *.py files (43 LOC)
    • 1 *.yaml files (31 LOC)
    • 1 *.csproj files (10 LOC)
    • 2 *.txt files (5 LOC)
  • " *.json" is biggest, containing 46.92% of LOC.
  • " *.txt" is smallest, containing 0.28% of LOC.


*.json846 LOC (46%) 2 files
*.mod284 LOC (15%) 3 files
*.md170 LOC (9%) 5 files
*.go112 LOC (6%) 2 files
*.xml95 LOC (5%) 1 file
*.cs89 LOC (4%) 2 files
*.java69 LOC (3%) 2 files
*.js49 LOC (2%) 1 file
*.py43 LOC (2%) 2 files
*.yaml31 LOC (1%) 1 file
*.csproj10 LOC (<1%) 1 file
*.txt5 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 22:13