GoogleCloudPlatform / terraform-pubsub-integration-golang
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.

main2392 LOC (60%) 55 files
test934 LOC (23%) 11 files
generated0 LOC (0%) 0 files
build and deployment0 LOC (0%) 0 files
other649 LOC (16%) 17 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 ".*".
  • 55 files match defined criteria (2,392 LOC, 100.0% vs. main code):
    • 18 *.tf files (984 LOC)
    • 18 *.go files (884 LOC)
    • 16 *.yaml files (332 LOC)
    • 3 *.avsc files (192 LOC)
  • " *.tf" is biggest, containing 41.14% of LOC.
  • " *.avsc" is smallest, containing 8.03% of LOC.


*.tf984 LOC (41%) 18 files
*.go884 LOC (36%) 18 files
*.yaml332 LOC (13%) 16 files
*.avsc192 LOC (8%) 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 ".*_test[.].*".
    • files with paths like ".*/[Tt]est/.*".
  • 11 files match defined criteria (934 LOC, 39.0% vs. main code):
    • 6 *.go files (792 LOC)
    • 5 *.tf files (142 LOC)
  • " *.go" is biggest, containing 84.8% of LOC.
  • " *.tf" is smallest, containing 15.2% of LOC.


*.go792 LOC (84%) 6 files
*.tf142 LOC (15%) 5 files
Other Code
mod
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 ".*/[.]gitignore".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Ee]xamples/.*".
  • 17 files match defined criteria (649 LOC, 27.1% vs. main code):
    • 9 *.md files (272 LOC)
    • 4 *.mod files (196 LOC)
    • 3 *.tf files (104 LOC)
    • 1 *.json files (77 LOC)
  • " *.md" is biggest, containing 41.91% of LOC.
  • " *.json" is smallest, containing 11.86% of LOC.


*.md272 LOC (41%) 9 files
*.mod196 LOC (30%) 4 files
*.tf104 LOC (16%) 3 files
*.json77 LOC (11%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 15:58