GoogleCloudPlatform / terraform-genai-doc-summarization
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
mod
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.

main678 LOC (50%) 9 files
test250 LOC (18%) 8 files
generated0 LOC (0%) 0 files
build and deployment39 LOC (2%) 1 file
other375 LOC (27%) 11 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 9 files match defined criteria (678 LOC, 100.0% vs. main code):
    • 4 *.tf files (335 LOC)
    • 3 *.yaml files (191 LOC)
    • 1 *.py files (144 LOC)
    • 1 *.toml files (8 LOC)
  • " *.tf" is biggest, containing 49.41% of LOC.
  • " *.toml" is smallest, containing 1.18% of LOC.


*.tf335 LOC (49%) 4 files
*.yaml191 LOC (28%) 3 files
*.py144 LOC (21%) 1 file
*.toml8 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[.].*".
  • 8 files match defined criteria (250 LOC, 36.9% vs. main code):
    • 5 *.tf files (151 LOC)
    • 1 *.py files (72 LOC)
    • 2 *.go files (27 LOC)
  • " *.tf" is biggest, containing 60.4% of LOC.
  • " *.go" is smallest, containing 10.8% of LOC.


*.tf151 LOC (60%) 5 files
*.py72 LOC (28%) 1 file
*.go27 LOC (10%) 2 files
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".
  • 1 file matches defined criteria (39 LOC, 5.8% vs. main code). All matches are in *.sh files.


*.sh39 LOC (100%) 1 file
Other Code
mod
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/go[.]mod".
  • 11 files match defined criteria (375 LOC, 55.3% vs. main code):
    • 5 *.md files (217 LOC)
    • 1 *.mod files (81 LOC)
    • 2 *.tf files (37 LOC)
    • 1 *.json files (32 LOC)
    • 2 *.txt files (8 LOC)
  • " *.md" is biggest, containing 57.87% of LOC.
  • " *.txt" is smallest, containing 2.13% of LOC.


*.md217 LOC (57%) 5 files
*.mod81 LOC (21%) 1 file
*.tf37 LOC (9%) 2 files
*.json32 LOC (8%) 1 file
*.txt8 LOC (2%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 15:56