GoogleCloudPlatform / spanner-migration-tool
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
cfg
mod
editorconfig
mk
proto
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.

main49362 LOC (53%) 370 files
test37975 LOC (41%) 159 files
generated0 LOC (0%) 0 files
build and deployment89 LOC (<1%) 4 files
other4388 LOC (4%) 34 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 370 files match defined criteria (49,362 LOC, 100.0% vs. main code):
    • 187 *.go files (31,970 LOC)
    • 86 *.ts files (10,690 LOC)
    • 45 *.html files (4,660 LOC)
    • 45 *.scss files (1,811 LOC)
    • 4 *.tf files (146 LOC)
    • 1 *.proto files (59 LOC)
    • 1 *.tfvars files (17 LOC)
    • 1 *.yaml files (9 LOC)
  • " *.go" is biggest, containing 64.77% of LOC.
  • " *.yaml" is smallest, containing 0.02% of LOC.


*.go31970 LOC (64%) 187 files
*.ts10690 LOC (21%) 86 files
*.html4660 LOC (9%) 45 files
*.scss1811 LOC (3%) 45 files
*.tf146 LOC (<1%) 4 files
*.proto59 LOC (<1%) 1 file
*.tfvars17 LOC (<1%) 1 file
*.yaml9 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*_mock[.][a-zA-Z0-9_\-]+".
    • files with paths like ".*/[Mm]ocks/.*".
    • files with paths like ".*/karma[.]conf[.]js".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*[.]spec[.]ts".
    • files with paths like ".*/e2e/.*".
    • files with paths like ".*[-]tests[-].*".
  • 159 files match defined criteria (37,975 LOC, 76.9% vs. main code):
    • 97 *.go files (32,047 LOC)
    • 58 *.ts files (3,502 LOC)
    • 1 *.sql files (2,315 LOC)
    • 2 *.cfg files (73 LOC)
    • 1 *.js files (38 LOC)
  • " *.go" is biggest, containing 84.39% of LOC.
  • " *.js" is smallest, containing 0.1% of LOC.


*.go32047 LOC (84%) 97 files
*.ts3502 LOC (9%) 58 files
*.sql2315 LOC (6%) 1 file
*.cfg73 LOC (<1%) 2 files
*.js38 LOC (<1%) 1 file
Build and Deployment Code
Source code used to configure or support build and deployment process.
mk
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]mk".
  • 4 files match defined criteria (89 LOC, 0.2% vs. main code):
    • 3 *.sh files (87 LOC)
    • 1 *.mk files (2 LOC)
  • " *.sh" is biggest, containing 97.75% of LOC.
  • " *.mk" is smallest, containing 2.25% of LOC.


*.sh87 LOC (97%) 3 files
*.mk2 LOC (2%) 1 file
Other Code
txt
mod
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/go[.]mod".
  • 34 files match defined criteria (4,388 LOC, 8.9% vs. main code):
    • 20 *.json files (2,996 LOC)
    • 8 *.md files (899 LOC)
    • 5 *.txt files (340 LOC)
    • 1 *.mod files (153 LOC)
  • " *.json" is biggest, containing 68.28% of LOC.
  • " *.mod" is smallest, containing 3.49% of LOC.


*.json2996 LOC (68%) 20 files
*.md899 LOC (20%) 8 files
*.txt340 LOC (7%) 5 files
*.mod153 LOC (3%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 15:17