GoogleCloudPlatform / marketing-analytics-jumpstart
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
tpl
ini
jsonl
hcl
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.

main33902 LOC (73%) 88 files
test1471 LOC (3%) 16 files
generated0 LOC (0%) 0 files
build and deployment427 LOC (<1%) 5 files
other10530 LOC (22%) 65 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
tpl
jsonl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 88 files match defined criteria (33,902 LOC, 100.0% vs. main code):
    • 10 *.yaml files (24,175 LOC)
    • 39 *.tf files (5,456 LOC)
    • 29 *.py files (3,516 LOC)
    • 2 *.tfvars files (416 LOC)
    • 4 *.toml files (212 LOC)
    • 3 *.tpl files (124 LOC)
    • 1 *.jsonl files (3 LOC)
  • " *.yaml" is biggest, containing 71.31% of LOC.
  • " *.jsonl" is smallest, containing 0.01% of LOC.


*.yaml24175 LOC (71%) 10 files
*.tf5456 LOC (16%) 39 files
*.py3516 LOC (10%) 29 files
*.tfvars416 LOC (1%) 2 files
*.toml212 LOC (<1%) 4 files
*.tpl124 LOC (<1%) 3 files
*.jsonl3 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 ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*_test[.].*".
  • 16 files match defined criteria (1,471 LOC, 4.3% vs. main code):
    • 15 *.py files (1,429 LOC)
    • 1 *.yaml files (42 LOC)
  • " *.py" is biggest, containing 97.14% of LOC.
  • " *.yaml" is smallest, containing 2.86% of LOC.


*.py1429 LOC (97%) 15 files
*.yaml42 LOC (2%) 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 ".*[.]sh".
  • 5 files match defined criteria (427 LOC, 1.3% vs. main code). All matches are in *.sh files.


*.sh427 LOC (100%) 5 files
Other Code
ini
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]ini".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]dockerignore".
  • 65 files match defined criteria (10,530 LOC, 31.1% vs. main code):
    • 47 *.json files (9,503 LOC)
    • 14 *.md files (827 LOC)
    • 2 *.ini files (197 LOC)
    • 2 *.txt files (3 LOC)
  • " *.json" is biggest, containing 90.25% of LOC.
  • " *.txt" is smallest, containing 0.03% of LOC.


*.json9503 LOC (90%) 47 files
*.md827 LOC (7%) 14 files
*.ini197 LOC (1%) 2 files
*.txt3 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 15:55