azure / AgentBaker
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
proto
mod
gtpl
cmd
hcl
mk
reg
man
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.

main22041 LOC (<1%) 124 files
test17473 LOC (<1%) 57 files
generated4758 LOC (<1%) 17 files
build and deployment10265 LOC (<1%) 70 files
other5850515 LOC (99%) 6,144 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
gtpl
man
reg
hcl
cmd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 124 files match defined criteria (22,041 LOC, 100.0% vs. main code):
    • 47 *.go files (8,653 LOC)
    • 37 *.ps1 files (8,129 LOC)
    • 4 *.psm1 files (3,580 LOC)
    • 17 *.proto files (836 LOC)
    • 5 *.gtpl files (278 LOC)
    • 1 *.man files (256 LOC)
    • 3 *.py files (142 LOC)
    • 1 *.toml files (67 LOC)
    • 1 *.cs files (37 LOC)
    • 1 *.reg files (24 LOC)
    • 2 *.hcl files (16 LOC)
    • 3 *.cmd files (13 LOC)
    • 2 *.yaml files (10 LOC)
  • " *.go" is biggest, containing 39.26% of LOC.
  • " *.yaml" is smallest, containing 0.05% of LOC.


*.go8653 LOC (39%) 47 files
*.ps18129 LOC (36%) 37 files
*.psm13580 LOC (16%) 4 files
*.proto836 LOC (3%) 17 files
*.gtpl278 LOC (1%) 5 files
*.man256 LOC (1%) 1 file
*.py142 LOC (<1%) 3 files
*.toml67 LOC (<1%) 1 file
*.cs37 LOC (<1%) 1 file
*.reg24 LOC (<1%) 1 file
*.hcl16 LOC (<1%) 2 files
*.cmd13 LOC (<1%) 3 files
*.yaml10 LOC (<1%) 2 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 ".*/e2e/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*[.][Tt]ests[.].*".
    • files with paths like ".*[.]tests[.].*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*/[Tt]est/.*".
  • 57 files match defined criteria (17,473 LOC, 79.3% vs. main code):
    • 40 *.go files (12,773 LOC)
    • 8 *.ps1 files (3,260 LOC)
    • 5 *.sh files (1,293 LOC)
    • 2 *.py files (120 LOC)
    • 2 *.yaml files (27 LOC)
  • " *.go" is biggest, containing 73.1% of LOC.
  • " *.yaml" is smallest, containing 0.15% of LOC.


*.go12773 LOC (73%) 40 files
*.ps13260 LOC (18%) 8 files
*.sh1293 LOC (7%) 5 files
*.py120 LOC (<1%) 2 files
*.yaml27 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 ".*/gen/.*[.]go".
  • 17 files match defined criteria (4,758 LOC, 21.6% vs. main code). All matches are in *.go files.


*.go4758 LOC (100%) 17 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 ".*[.]mk".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 70 files match defined criteria (10,265 LOC, 46.6% vs. main code):
    • 68 *.sh files (10,139 LOC)
    • 2 *.mk files (126 LOC)
  • " *.sh" is biggest, containing 98.77% of LOC.
  • " *.mk" is smallest, containing 1.23% of LOC.


*.sh10139 LOC (98%) 68 files
*.mk126 LOC (1%) 2 files
Other Code
txt
mod
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".
  • 6144 files match defined criteria (5,850,515 LOC, 26543.8% vs. main code):
    • 3,423 *.txt files (3,497,173 LOC)
    • 2,699 *.json files (2,351,716 LOC)
    • 15 *.md files (1,381 LOC)
    • 7 *.mod files (245 LOC)
  • " *.txt" is biggest, containing 59.78% of LOC.
  • " *.mod" is smallest, containing 0% of LOC.


*.txt3497173 LOC (59%) 3,423 files
*.json2351716 LOC (40%) 2,699 files
*.md1381 LOC (<1%) 15 files
*.mod245 LOC (<1%) 7 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 22:00