azure / AKS-Landing-Zone-Accelerator
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
hcl
txt
tpl
csproj
gitmodules
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.

main3930 LOC (53%) 92 files
test0 LOC (0%) 0 files
generated0 LOC (0%) 0 files
build and deployment45 LOC (<1%) 2 files
other3360 LOC (45%) 46 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 ".*".
  • 92 files match defined criteria (3,930 LOC, 100.0% vs. main code):
    • 49 *.tf files (2,176 LOC)
    • 30 *.yaml files (1,432 LOC)
    • 4 *.ps1 files (167 LOC)
    • 2 *.cs files (73 LOC)
    • 1 *.tpl files (57 LOC)
    • 6 *.tfvars files (25 LOC)
  • " *.tf" is biggest, containing 55.37% of LOC.
  • " *.tfvars" is smallest, containing 0.64% of LOC.


*.tf2176 LOC (55%) 49 files
*.yaml1432 LOC (36%) 30 files
*.ps1167 LOC (4%) 4 files
*.cs73 LOC (1%) 2 files
*.tpl57 LOC (1%) 1 file
*.tfvars25 LOC (<1%) 6 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]csproj".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/[.]gitmodules".
  • 2 files match defined criteria (45 LOC, 1.1% vs. main code):
    • 1 *.sh files (34 LOC)
    • 1 *.csproj files (11 LOC)
  • " *.sh" is biggest, containing 75.56% of LOC.
  • " *.csproj" is smallest, containing 24.44% of LOC.


*.sh34 LOC (75%) 1 file
*.csproj11 LOC (24%) 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 ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*[.]txt".
  • 46 files match defined criteria (3,360 LOC, 85.5% vs. main code):
    • 33 *.md files (2,155 LOC)
    • 12 *.json files (1,182 LOC)
    • 1 *.txt files (23 LOC)
  • " *.md" is biggest, containing 64.14% of LOC.
  • " *.txt" is smallest, containing 0.68% of LOC.


*.md2155 LOC (64%) 33 files
*.json1182 LOC (35%) 12 files
*.txt23 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 22:24