GoogleCloudPlatform / deploymentmanager-samples
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
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.

main8220 LOC (37%) 260 files
test1490 LOC (6%) 11 files
generated0 LOC (0%) 0 files
build and deployment661 LOC (3%) 13 files
other11320 LOC (52%) 332 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 ".*".
  • 260 files match defined criteria (8,220 LOC, 100.0% vs. main code):
    • 92 *.jinja files (3,600 LOC)
    • 42 *.py files (2,498 LOC)
    • 109 *.yaml files (1,261 LOC)
    • 12 *.js files (724 LOC)
    • 5 *.tf files (137 LOC)
  • " *.jinja" is biggest, containing 43.8% of LOC.
  • " *.tf" is smallest, containing 1.67% of LOC.


*.jinja3600 LOC (43%) 92 files
*.py2498 LOC (30%) 42 files
*.yaml1261 LOC (15%) 109 files
*.js724 LOC (8%) 12 files
*.tf137 LOC (1%) 5 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]ests/.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*_test[.].*".
  • 11 files match defined criteria (1,490 LOC, 18.1% vs. main code):
    • 4 *.js files (1,084 LOC)
    • 7 *.sh files (406 LOC)
  • " *.js" is biggest, containing 72.75% of LOC.
  • " *.sh" is smallest, containing 27.25% of LOC.


*.js1084 LOC (72%) 4 files
*.sh406 LOC (27%) 7 files
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 ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 13 files match defined criteria (661 LOC, 8.0% vs. main code). All matches are in *.sh files.


*.sh661 LOC (100%) 13 files
Other Code
txt
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]properties".
  • 332 files match defined criteria (11,320 LOC, 137.7% vs. main code):
    • 72 *.py files (3,109 LOC)
    • 75 *.jinja files (3,038 LOC)
    • 75 *.md files (2,987 LOC)
    • 81 *.yaml files (1,017 LOC)
    • 5 *.json files (462 LOC)
    • 10 *.sh files (373 LOC)
    • 7 *.txt files (183 LOC)
    • 2 *.js files (67 LOC)
    • 2 *.sls files (38 LOC)
    • 1 *.c files (33 LOC)
    • 1 *.properties files (12 LOC)
    • 1 *.html files (1 LOC)
  • " *.py" is biggest, containing 27.46% of LOC.
  • " *.html" is smallest, containing 0.01% of LOC.


*.py3109 LOC (27%) 72 files
*.jinja3038 LOC (26%) 75 files
*.md2987 LOC (26%) 75 files
*.yaml1017 LOC (8%) 81 files
*.json462 LOC (4%) 5 files
*.sh373 LOC (3%) 10 files
*.txt183 LOC (1%) 7 files
*.js67 LOC (<1%) 2 files
*.sls38 LOC (<1%) 2 files
*.c33 LOC (<1%) 1 file
*.properties12 LOC (<1%) 1 file
*.html1 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 14:21