GoogleCloudPlatform / solutionbuilder-terraform-google-bigquery
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.

main2837 LOC (50%) 42 files
test354 LOC (6%) 12 files
generated0 LOC (0%) 0 files
build and deployment276 LOC (4%) 5 files
other2200 LOC (38%) 47 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 ".*".
  • 42 files match defined criteria (2,837 LOC, 100.0% vs. main code):
    • 22 *.tf files (1,607 LOC)
    • 13 *.yaml files (806 LOC)
    • 7 *.sql files (424 LOC)
  • " *.tf" is biggest, containing 56.64% of LOC.
  • " *.sql" is smallest, containing 14.95% of LOC.


*.tf1607 LOC (56%) 22 files
*.yaml806 LOC (28%) 13 files
*.sql424 LOC (14%) 7 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 ".*/[Tt]est/.*".
    • files with paths like ".*_test[.].*".
  • 12 files match defined criteria (354 LOC, 12.5% vs. main code):
    • 8 *.tf files (248 LOC)
    • 1 *.rb files (70 LOC)
    • 2 *.go files (30 LOC)
    • 1 *.tfvars files (6 LOC)
  • " *.tf" is biggest, containing 70.06% of LOC.
  • " *.tfvars" is smallest, containing 1.69% of LOC.


*.tf248 LOC (70%) 8 files
*.rb70 LOC (19%) 1 file
*.go30 LOC (8%) 2 files
*.tfvars6 LOC (1%) 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
  • 5 files match defined criteria (276 LOC, 9.7% vs. main code). All matches are in *.sh files.


*.sh276 LOC (100%) 5 files
Other Code
mod
txt
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 ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/go[.]mod".
  • 47 files match defined criteria (2,200 LOC, 77.5% vs. main code):
    • 20 *.tf files (827 LOC)
    • 13 *.md files (753 LOC)
    • 10 *.json files (475 LOC)
    • 1 *.mod files (77 LOC)
    • 2 *.tfvars files (55 LOC)
    • 1 *.txt files (13 LOC)
  • " *.tf" is biggest, containing 37.59% of LOC.
  • " *.txt" is smallest, containing 0.59% of LOC.


*.tf827 LOC (37%) 20 files
*.md753 LOC (34%) 13 files
*.json475 LOC (21%) 10 files
*.mod77 LOC (3%) 1 file
*.tfvars55 LOC (2%) 2 files
*.txt13 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 16:00