azure / terraform
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
mod
txt
feature
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.

main19995 LOC (14%) 566 files
test256 LOC (<1%) 3 files
generated0 LOC (0%) 0 files
build and deployment225 LOC (<1%) 6 files
other121803 LOC (85%) 274 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
hcl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 566 files match defined criteria (19,995 LOC, 100.0% vs. main code):
    • 560 *.tf files (19,793 LOC)
    • 1 *.yaml files (85 LOC)
    • 1 *.hcl files (70 LOC)
    • 3 *.tfvars files (46 LOC)
    • 1 *.html files (1 LOC)
  • " *.tf" is biggest, containing 98.99% of LOC.
  • " *.html" is smallest, containing 0.01% of LOC.


*.tf19793 LOC (98%) 560 files
*.yaml85 LOC (<1%) 1 file
*.hcl70 LOC (<1%) 1 file
*.tfvars46 LOC (<1%) 3 files
*.html1 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 ".*/[Tt]est/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*[.]feature".
    • files with paths like ".*/e2e/.*".
  • 3 files match defined criteria (256 LOC, 1.3% vs. main code):
    • 2 *.go files (239 LOC)
    • 1 *.sh files (17 LOC)
  • " *.go" is biggest, containing 93.36% of LOC.
  • " *.sh" is smallest, containing 6.64% of LOC.


*.go239 LOC (93%) 2 files
*.sh17 LOC (6%) 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitmodules".
  • 6 files match defined criteria (225 LOC, 1.1% vs. main code). All matches are in *.sh files.


*.sh225 LOC (100%) 6 files
Other Code
mod
feature
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 ".*[.]markdown".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*/go[.]mod".
  • 274 files match defined criteria (121,803 LOC, 609.2% vs. main code):
    • 251 *.md files (120,713 LOC)
    • 2 *.json files (516 LOC)
    • 12 *.tf files (174 LOC)
    • 2 *.mod files (147 LOC)
    • 2 *.markdown files (74 LOC)
    • 1 *.go files (74 LOC)
    • 2 *.sh files (45 LOC)
    • 1 *.yaml files (44 LOC)
    • 1 *.feature files (16 LOC)
  • " *.md" is biggest, containing 99.11% of LOC.
  • " *.feature" is smallest, containing 0.01% of LOC.


*.md120713 LOC (99%) 251 files
*.json516 LOC (<1%) 2 files
*.tf174 LOC (<1%) 12 files
*.mod147 LOC (<1%) 2 files
*.markdown74 LOC (<1%) 2 files
*.go74 LOC (<1%) 1 file
*.sh45 LOC (<1%) 2 files
*.yaml44 LOC (<1%) 1 file
*.feature16 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 21:28