GoogleCloudPlatform / ai-on-gke
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
mod
pb
ini
in
mjs
gitmodules
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.

main52235 LOC (42%) 603 files
test11601 LOC (9%) 21 files
generated14176 LOC (11%) 2 files
build and deployment1034 LOC (<1%) 30 files
other43673 LOC (35%) 225 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
tpl
in
mjs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 603 files match defined criteria (52,235 LOC, 100.0% vs. main code):
    • 303 *.yaml files (30,856 LOC)
    • 160 *.tf files (9,554 LOC)
    • 23 *.go files (3,952 LOC)
    • 41 *.py files (3,708 LOC)
    • 37 *.tfvars files (1,338 LOC)
    • 2 *.ipynb files (1,192 LOC)
    • 17 *.tpl files (694 LOC)
    • 6 *.tsx files (573 LOC)
    • 6 *.ts files (260 LOC)
    • 4 *.js files (61 LOC)
    • 1 *.css files (23 LOC)
    • 1 *.html files (11 LOC)
    • 1 *.in files (8 LOC)
    • 1 *.mjs files (5 LOC)
  • " *.yaml" is biggest, containing 59.07% of LOC.
  • " *.mjs" is smallest, containing 0.01% of LOC.


*.yaml30856 LOC (59%) 303 files
*.tf9554 LOC (18%) 160 files
*.go3952 LOC (7%) 23 files
*.py3708 LOC (7%) 41 files
*.tfvars1338 LOC (2%) 37 files
*.ipynb1192 LOC (2%) 2 files
*.tpl694 LOC (1%) 17 files
*.tsx573 LOC (1%) 6 files
*.ts260 LOC (<1%) 6 files
*.js61 LOC (<1%) 4 files
*.css23 LOC (<1%) 1 file
*.html11 LOC (<1%) 1 file
*.in8 LOC (<1%) 1 file
*.mjs5 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[.].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/e2e/.*".
  • 21 files match defined criteria (11,601 LOC, 22.2% vs. main code):
    • 5 *.yaml files (7,712 LOC)
    • 9 *.go files (3,658 LOC)
    • 6 *.py files (200 LOC)
    • 1 *.sh files (31 LOC)
  • " *.yaml" is biggest, containing 66.48% of LOC.
  • " *.sh" is smallest, containing 0.27% of LOC.


*.yaml7712 LOC (66%) 5 files
*.go3658 LOC (31%) 9 files
*.py200 LOC (1%) 6 files
*.sh31 LOC (<1%) 1 file
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".
  • 2 files match defined criteria (14,176 LOC, 27.1% vs. main code). All matches are in *.json files.


*.json14176 LOC (100%) 2 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
    • files with paths like ".*/[.]gitmodules".
  • 30 files match defined criteria (1,034 LOC, 2.0% vs. main code):
    • 29 *.sh files (994 LOC)
    • 1 *.js files (40 LOC)
  • " *.sh" is biggest, containing 96.13% of LOC.
  • " *.js" is smallest, containing 3.87% of LOC.


*.sh994 LOC (96%) 29 files
*.js40 LOC (3%) 1 file
Other Code
pb
txt
mod
ini
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 ".*/[.]gitignore".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*[.]ini".
    • files with paths like ".*[.]pb".
    • files with paths like ".*[.]svg".
  • 225 files match defined criteria (43,673 LOC, 83.6% vs. main code):
    • 71 *.json files (21,359 LOC)
    • 4 *.pb files (10,252 LOC)
    • 106 *.md files (7,102 LOC)
    • 7 *.ipynb files (2,337 LOC)
    • 22 *.txt files (2,091 LOC)
    • 5 *.mod files (250 LOC)
    • 6 *.tfvars files (214 LOC)
    • 1 *.yaml files (45 LOC)
    • 1 *.py files (20 LOC)
    • 1 *.ini files (2 LOC)
    • 1 *.svg files (1 LOC)
  • " *.json" is biggest, containing 48.91% of LOC.
  • " *.svg" is smallest, containing 0% of LOC.


*.json21359 LOC (48%) 71 files
*.pb10252 LOC (23%) 4 files
*.md7102 LOC (16%) 106 files
*.ipynb2337 LOC (5%) 7 files
*.txt2091 LOC (4%) 22 files
*.mod250 LOC (<1%) 5 files
*.tfvars214 LOC (<1%) 6 files
*.yaml45 LOC (<1%) 1 file
*.py20 LOC (<1%) 1 file
*.ini2 LOC (<1%) 1 file
*.svg1 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 15:56