GoogleCloudPlatform / terraform-google-enterprise-application
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
hcl
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.

main7079 LOC (12%) 123 files
test5115 LOC (8%) 42 files
generated0 LOC (0%) 0 files
build and deployment0 LOC (0%) 0 files
other45083 LOC (78%) 1,055 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 ".*".
  • 123 files match defined criteria (7,079 LOC, 100.0% vs. main code):
    • 103 *.tf files (5,634 LOC)
    • 7 *.yaml files (788 LOC)
    • 10 *.tfvars files (435 LOC)
    • 2 *.py files (211 LOC)
    • 1 *.go files (11 LOC)
  • " *.tf" is biggest, containing 79.59% of LOC.
  • " *.go" is smallest, containing 0.16% of LOC.


*.tf5634 LOC (79%) 103 files
*.yaml788 LOC (11%) 7 files
*.tfvars435 LOC (6%) 10 files
*.py211 LOC (2%) 2 files
*.go11 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 ".*/[Tt]est/.*".
    • files with paths like ".*_test[.].*".
  • 42 files match defined criteria (5,115 LOC, 72.3% vs. main code):
    • 26 *.go files (3,387 LOC)
    • 13 *.tf files (1,645 LOC)
    • 1 *.sh files (57 LOC)
    • 2 *.yaml files (26 LOC)
  • " *.go" is biggest, containing 66.22% of LOC.
  • " *.yaml" is smallest, containing 0.51% of LOC.


*.go3387 LOC (66%) 26 files
*.tf1645 LOC (32%) 13 files
*.sh57 LOC (1%) 1 file
*.yaml26 LOC (<1%) 2 files
Other Code
txt
mod
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]dockerignore".
  • 1055 files match defined criteria (45,083 LOC, 636.9% vs. main code):
    • 718 *.tf files (30,318 LOC)
    • 46 *.md files (4,549 LOC)
    • 176 *.yaml files (4,537 LOC)
    • 37 *.py files (4,023 LOC)
    • 32 *.tfvars files (1,090 LOC)
    • 40 *.txt files (243 LOC)
    • 1 *.ipynb files (151 LOC)
    • 3 *.mod files (147 LOC)
    • 1 *.sh files (14 LOC)
    • 1 *.go files (11 LOC)
  • " *.tf" is biggest, containing 67.25% of LOC.
  • " *.go" is smallest, containing 0.02% of LOC.


*.tf30318 LOC (67%) 718 files
*.md4549 LOC (10%) 46 files
*.yaml4537 LOC (10%) 176 files
*.py4023 LOC (8%) 37 files
*.tfvars1090 LOC (2%) 32 files
*.txt243 LOC (<1%) 40 files
*.ipynb151 LOC (<1%) 1 file
*.mod147 LOC (<1%) 3 files
*.sh14 LOC (<1%) 1 file
*.go11 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 16:01