GoogleCloudPlatform / solutions-builder
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
patch
cfg
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.

main6357 LOC (84%) 174 files
test211 LOC (2%) 5 files
generated0 LOC (0%) 0 files
build and deployment202 LOC (2%) 6 files
other754 LOC (10%) 29 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 174 files match defined criteria (6,357 LOC, 100.0% vs. main code):
    • 64 *.tf files (2,931 LOC)
    • 48 *.yaml files (1,644 LOC)
    • 50 *.py files (1,640 LOC)
    • 10 *.tfvars files (96 LOC)
    • 1 *.toml files (41 LOC)
    • 1 *.cfg files (5 LOC)
  • " *.tf" is biggest, containing 46.11% of LOC.
  • " *.cfg" is smallest, containing 0.08% of LOC.


*.tf2931 LOC (46%) 64 files
*.yaml1644 LOC (25%) 48 files
*.py1640 LOC (25%) 50 files
*.tfvars96 LOC (1%) 10 files
*.toml41 LOC (<1%) 1 file
*.cfg5 LOC (<1%) 1 file
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]ests/.*".
    • files with paths like ".*/e2e/.*".
  • 5 files match defined criteria (211 LOC, 3.3% vs. main code):
    • 4 *.py files (171 LOC)
    • 1 *.sh files (40 LOC)
  • " *.py" is biggest, containing 81.04% of LOC.
  • " *.sh" is smallest, containing 18.96% of LOC.


*.py171 LOC (81%) 4 files
*.sh40 LOC (18%) 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 6 files match defined criteria (202 LOC, 3.2% vs. main code). All matches are in *.sh files.


*.sh202 LOC (100%) 6 files
Other Code
txt
patch
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]patch".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
  • 29 files match defined criteria (754 LOC, 11.9% vs. main code):
    • 12 *.md files (645 LOC)
    • 11 *.txt files (81 LOC)
    • 5 *.patch files (20 LOC)
    • 1 *.json files (8 LOC)
  • " *.md" is biggest, containing 85.54% of LOC.
  • " *.json" is smallest, containing 1.06% of LOC.


*.md645 LOC (85%) 12 files
*.txt81 LOC (10%) 11 files
*.patch20 LOC (2%) 5 files
*.json8 LOC (1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 15:47