GoogleCloudPlatform / terraform-cloud-client-api
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
properties
mod
handlebars
cmd
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.

main1542 LOC (12%) 35 files
test488 LOC (4%) 15 files
generated4567 LOC (37%) 1 file
build and deployment138 LOC (1%) 1 file
other5340 LOC (44%) 29 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
handlebars
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 35 files match defined criteria (1,542 LOC, 100.0% vs. main code):
    • 8 *.java files (272 LOC)
    • 4 *.tf files (249 LOC)
    • 4 *.py files (245 LOC)
    • 5 *.yaml files (221 LOC)
    • 3 *.html files (205 LOC)
    • 7 *.js files (203 LOC)
    • 1 *.handlebars files (102 LOC)
    • 1 *.xml files (27 LOC)
    • 2 *.toml files (18 LOC)
  • " *.java" is biggest, containing 17.64% of LOC.
  • " *.toml" is smallest, containing 1.17% of LOC.


*.java272 LOC (17%) 8 files
*.tf249 LOC (16%) 4 files
*.py245 LOC (15%) 4 files
*.yaml221 LOC (14%) 5 files
*.html205 LOC (13%) 3 files
*.js203 LOC (13%) 7 files
*.handlebars102 LOC (6%) 1 file
*.xml27 LOC (1%) 1 file
*.toml18 LOC (1%) 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 ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*_test[.].*".
  • 15 files match defined criteria (488 LOC, 31.6% vs. main code):
    • 5 *.tf files (159 LOC)
    • 5 *.go files (138 LOC)
    • 2 *.java files (87 LOC)
    • 1 *.js files (63 LOC)
    • 2 *.py files (41 LOC)
  • " *.tf" is biggest, containing 32.58% of LOC.
  • " *.py" is smallest, containing 8.4% of LOC.


*.tf159 LOC (32%) 5 files
*.go138 LOC (28%) 5 files
*.java87 LOC (17%) 2 files
*.js63 LOC (12%) 1 file
*.py41 LOC (8%) 2 files
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/package[-]lock[.]json".
  • 1 file matches defined criteria (4,567 LOC, 296.2% vs. main code). All matches are in *.json files.


*.json4567 LOC (100%) 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 ".*/pom[.]xml".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
  • 1 file matches defined criteria (138 LOC, 8.9% vs. main code). All matches are in *.xml files.


*.xml138 LOC (100%) 1 file
Other Code
mod
properties
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 ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/go[.]mod".
  • 29 files match defined criteria (5,340 LOC, 346.3% vs. main code):
    • 3 *.json files (4,634 LOC)
    • 12 *.md files (419 LOC)
    • 9 *.tf files (201 LOC)
    • 1 *.mod files (60 LOC)
    • 1 *.properties files (16 LOC)
    • 3 *.txt files (10 LOC)
  • " *.json" is biggest, containing 86.78% of LOC.
  • " *.txt" is smallest, containing 0.19% of LOC.


*.json4634 LOC (86%) 3 files
*.md419 LOC (7%) 12 files
*.tf201 LOC (3%) 9 files
*.mod60 LOC (1%) 1 file
*.properties16 LOC (<1%) 1 file
*.txt10 LOC (<1%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 16:03