GoogleCloudPlatform / terraform-google-dbt-composer-blueprint
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
in
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.

main808 LOC (32%) 13 files
test164 LOC (6%) 7 files
generated0 LOC (0%) 0 files
build and deployment0 LOC (0%) 0 files
other1489 LOC (60%) 16 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 ".*".
  • 13 files match defined criteria (808 LOC, 100.0% vs. main code):
    • 6 *.tf files (383 LOC)
    • 2 *.sql files (183 LOC)
    • 3 *.yaml files (148 LOC)
    • 2 *.py files (94 LOC)
  • " *.tf" is biggest, containing 47.4% of LOC.
  • " *.py" is smallest, containing 11.63% of LOC.


*.tf383 LOC (47%) 6 files
*.sql183 LOC (22%) 2 files
*.yaml148 LOC (18%) 3 files
*.py94 LOC (11%) 2 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[.].*".
  • 7 files match defined criteria (164 LOC, 20.3% vs. main code):
    • 5 *.tf files (137 LOC)
    • 2 *.go files (27 LOC)
  • " *.tf" is biggest, containing 83.54% of LOC.
  • " *.go" is smallest, containing 16.46% of LOC.


*.tf137 LOC (83%) 5 files
*.go27 LOC (16%) 2 files
Other Code
txt
mod
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*/[.]dockerignore".
  • 16 files match defined criteria (1,489 LOC, 184.3% vs. main code):
    • 1 *.txt files (909 LOC)
    • 5 *.md files (237 LOC)
    • 4 *.tf files (140 LOC)
    • 1 *.mod files (73 LOC)
    • 1 *.json files (58 LOC)
    • 1 *.py files (39 LOC)
    • 1 *.yaml files (22 LOC)
    • 1 *.in files (6 LOC)
    • 1 *.sql files (5 LOC)
  • " *.txt" is biggest, containing 61.05% of LOC.
  • " *.sql" is smallest, containing 0.34% of LOC.


*.txt909 LOC (61%) 1 file
*.md237 LOC (15%) 5 files
*.tf140 LOC (9%) 4 files
*.mod73 LOC (4%) 1 file
*.json58 LOC (3%) 1 file
*.py39 LOC (2%) 1 file
*.yaml22 LOC (1%) 1 file
*.in6 LOC (<1%) 1 file
*.sql5 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 16:00