GoogleCloudPlatform / click-to-deploy-solutions
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
editorconfig
tpl
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.

main37506 LOC (79%) 389 files
test636 LOC (1%) 40 files
generated0 LOC (0%) 0 files
build and deployment1336 LOC (2%) 32 files
other7878 LOC (16%) 95 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
tpl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 389 files match defined criteria (37,506 LOC, 100.0% vs. main code):
    • 43 *.py files (7,370 LOC)
    • 27 *.scss files (7,357 LOC)
    • 163 *.tf files (6,486 LOC)
    • 51 *.ts files (5,442 LOC)
    • 2 *.css files (4,003 LOC)
    • 1 *.tpl files (2,477 LOC)
    • 53 *.yaml files (1,668 LOC)
    • 21 *.html files (1,389 LOC)
    • 2 *.toml files (464 LOC)
    • 20 *.tfvars files (425 LOC)
    • 1 *.ipynb files (303 LOC)
    • 3 *.sql files (69 LOC)
    • 2 *.js files (53 LOC)
  • " *.py" is biggest, containing 19.65% of LOC.
  • " *.js" is smallest, containing 0.14% of LOC.


*.py7370 LOC (19%) 43 files
*.scss7357 LOC (19%) 27 files
*.tf6486 LOC (17%) 163 files
*.ts5442 LOC (14%) 51 files
*.css4003 LOC (10%) 2 files
*.tpl2477 LOC (6%) 1 file
*.yaml1668 LOC (4%) 53 files
*.html1389 LOC (3%) 21 files
*.toml464 LOC (1%) 2 files
*.tfvars425 LOC (1%) 20 files
*.ipynb303 LOC (<1%) 1 file
*.sql69 LOC (<1%) 3 files
*.js53 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 ".*_test[.].*".
    • files with paths like ".*[.]spec[.]ts".
  • 40 files match defined criteria (636 LOC, 1.7% vs. main code):
    • 39 *.ts files (627 LOC)
    • 1 *.sh files (9 LOC)
  • " *.ts" is biggest, containing 98.58% of LOC.
  • " *.sh" is smallest, containing 1.42% of LOC.


*.ts627 LOC (98%) 39 files
*.sh9 LOC (1%) 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".
    • files with paths like ".*/package[.]json".
  • 32 files match defined criteria (1,336 LOC, 3.6% vs. main code). All matches are in *.sh files.


*.sh1336 LOC (100%) 32 files
Other Code
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 ".*[.]txt".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*[.]editorconfig".
  • 95 files match defined criteria (7,878 LOC, 21.0% vs. main code):
    • 18 *.json files (3,793 LOC)
    • 49 *.md files (3,142 LOC)
    • 17 *.svg files (859 LOC)
    • 11 *.txt files (84 LOC)
  • " *.json" is biggest, containing 48.15% of LOC.
  • " *.txt" is smallest, containing 1.07% of LOC.


*.json3793 LOC (48%) 18 files
*.md3142 LOC (39%) 49 files
*.svg859 LOC (10%) 17 files
*.txt84 LOC (1%) 11 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 15:52