GoogleCloudPlatform / database-migration-wave-orchestrator
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
ini
cfg
mako
editorconfig
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.

main20905 LOC (60%) 387 files
test12099 LOC (34%) 122 files
generated0 LOC (0%) 0 files
build and deployment234 LOC (<1%) 3 files
other1346 LOC (3%) 14 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
mako
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 387 files match defined criteria (20,905 LOC, 100.0% vs. main code):
    • 120 *.ts files (6,885 LOC)
    • 126 *.py files (6,081 LOC)
    • 48 *.html files (3,881 LOC)
    • 78 *.scss files (2,300 LOC)
    • 14 *.tf files (1,740 LOC)
    • 1 *.mako files (18 LOC)
  • " *.ts" is biggest, containing 32.93% of LOC.
  • " *.mako" is smallest, containing 0.09% of LOC.


*.ts6885 LOC (32%) 120 files
*.py6081 LOC (29%) 126 files
*.html3881 LOC (18%) 48 files
*.scss2300 LOC (11%) 78 files
*.tf1740 LOC (8%) 14 files
*.mako18 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 ".*/karma[.]conf[.]js".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*[.]spec[.]ts".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
  • 122 files match defined criteria (12,099 LOC, 57.9% vs. main code):
    • 66 *.py files (6,565 LOC)
    • 55 *.ts files (5,491 LOC)
    • 1 *.js files (43 LOC)
  • " *.py" is biggest, containing 54.26% of LOC.
  • " *.js" is smallest, containing 0.36% of LOC.


*.py6565 LOC (54%) 66 files
*.ts5491 LOC (45%) 55 files
*.js43 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".
  • 3 files match defined criteria (234 LOC, 1.1% vs. main code). All matches are in *.sh files.


*.sh234 LOC (100%) 3 files
Other Code
txt
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 ".*[.]json".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*[.]ini".
    • files with paths like ".*/[.]dockerignore".
  • 14 files match defined criteria (1,346 LOC, 6.4% vs. main code):
    • 5 *.md files (941 LOC)
    • 5 *.json files (255 LOC)
    • 3 *.txt files (112 LOC)
    • 1 *.ini files (38 LOC)
  • " *.md" is biggest, containing 69.91% of LOC.
  • " *.ini" is smallest, containing 2.82% of LOC.


*.md941 LOC (69%) 5 files
*.json255 LOC (18%) 5 files
*.txt112 LOC (8%) 3 files
*.ini38 LOC (2%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 15:49