GoogleCloudPlatform / terraform-google-secured-data-warehouse-onprem-ingest
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
mod
txt
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.

main4631 LOC (55%) 76 files
test798 LOC (9%) 14 files
generated0 LOC (0%) 0 files
build and deployment99 LOC (1%) 3 files
other2865 LOC (34%) 30 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 ".*".
  • 76 files match defined criteria (4,631 LOC, 100.0% vs. main code):
    • 72 *.tf files (4,447 LOC)
    • 1 *.py files (110 LOC)
    • 3 *.yaml files (74 LOC)
  • " *.tf" is biggest, containing 96.03% of LOC.
  • " *.yaml" is smallest, containing 1.6% of LOC.


*.tf4447 LOC (96%) 72 files
*.py110 LOC (2%) 1 file
*.yaml74 LOC (1%) 3 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[.].*".
  • 14 files match defined criteria (798 LOC, 17.2% vs. main code):
    • 9 *.tf files (444 LOC)
    • 3 *.go files (338 LOC)
    • 2 *.sh files (16 LOC)
  • " *.tf" is biggest, containing 55.64% of LOC.
  • " *.sh" is smallest, containing 2.01% of LOC.


*.tf444 LOC (55%) 9 files
*.go338 LOC (42%) 3 files
*.sh16 LOC (2%) 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".
  • 3 files match defined criteria (99 LOC, 2.1% vs. main code). All matches are in *.sh files.


*.sh99 LOC (100%) 3 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 ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]dockerignore".
  • 30 files match defined criteria (2,865 LOC, 61.9% vs. main code):
    • 7 *.tf files (1,363 LOC)
    • 7 *.md files (830 LOC)
    • 2 *.go files (273 LOC)
    • 2 *.json files (140 LOC)
    • 4 *.mod files (133 LOC)
    • 2 *.py files (85 LOC)
    • 1 *.tfvars files (28 LOC)
    • 3 *.txt files (5 LOC)
    • 1 *.sh files (5 LOC)
    • 1 *.sql files (3 LOC)
  • " *.tf" is biggest, containing 47.57% of LOC.
  • " *.sql" is smallest, containing 0.1% of LOC.


*.tf1363 LOC (47%) 7 files
*.md830 LOC (28%) 7 files
*.go273 LOC (9%) 2 files
*.json140 LOC (4%) 2 files
*.mod133 LOC (4%) 4 files
*.py85 LOC (2%) 2 files
*.tfvars28 LOC (<1%) 1 file
*.txt5 LOC (<1%) 3 files
*.sh5 LOC (<1%) 1 file
*.sql3 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 15:57