azure / GuestProxyAgent
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
cmd
vbs
txt
wsf
gitattributes
spec
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.

main23758 LOC (94%) 170 files
test353 LOC (1%) 2 files
generated0 LOC (0%) 0 files
build and deployment836 LOC (3%) 17 files
other312 LOC (1%) 12 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
wsf
cmd
vbs
spec
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 170 files match defined criteria (23,758 LOC, 100.0% vs. main code):
    • 92 *.rs files (18,614 LOC)
    • 44 *.cs files (2,587 LOC)
    • 2 *.wsf files (979 LOC)
    • 9 *.ps1 files (495 LOC)
    • 2 *.c files (300 LOC)
    • 8 *.cmd files (284 LOC)
    • 5 *.toml files (179 LOC)
    • 5 *.vbs files (150 LOC)
    • 2 *.h files (133 LOC)
    • 1 *.spec files (37 LOC)
  • " *.rs" is biggest, containing 78.35% of LOC.
  • " *.spec" is smallest, containing 0.16% of LOC.


*.rs18614 LOC (78%) 92 files
*.cs2587 LOC (10%) 44 files
*.wsf979 LOC (4%) 2 files
*.ps1495 LOC (2%) 9 files
*.c300 LOC (1%) 2 files
*.cmd284 LOC (1%) 8 files
*.toml179 LOC (<1%) 5 files
*.vbs150 LOC (<1%) 5 files
*.h133 LOC (<1%) 2 files
*.spec37 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_\-]+".
  • 2 files match defined criteria (353 LOC, 1.5% vs. main code). All matches are in *.rs files.


*.rs353 LOC (100%) 2 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
csproj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]csproj".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
  • 17 files match defined criteria (836 LOC, 3.5% vs. main code):
    • 16 *.sh files (795 LOC)
    • 1 *.csproj files (41 LOC)
  • " *.sh" is biggest, containing 95.1% of LOC.
  • " *.csproj" is smallest, containing 4.9% of LOC.


*.sh795 LOC (95%) 16 files
*.csproj41 LOC (4%) 1 file
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]dockerignore".
  • 12 files match defined criteria (312 LOC, 1.3% vs. main code):
    • 7 *.md files (209 LOC)
    • 4 *.json files (66 LOC)
    • 1 *.txt files (37 LOC)
  • " *.md" is biggest, containing 66.99% of LOC.
  • " *.txt" is smallest, containing 11.86% of LOC.


*.md209 LOC (66%) 7 files
*.json66 LOC (21%) 4 files
*.txt37 LOC (11%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 23:07