GoogleCloudPlatform / cloud-sql-proxy-operator
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
mod
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.

main4207 LOC (49%) 63 files
test3577 LOC (41%) 10 files
generated0 LOC (0%) 0 files
build and deployment320 LOC (3%) 6 files
other418 LOC (4%) 10 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 ".*".
  • 63 files match defined criteria (4,207 LOC, 100.0% vs. main code):
    • 18 *.go files (3,014 LOC)
    • 35 *.yaml files (636 LOC)
    • 10 *.tf files (557 LOC)
  • " *.go" is biggest, containing 71.64% of LOC.
  • " *.tf" is smallest, containing 13.24% of LOC.


*.go3014 LOC (71%) 18 files
*.yaml636 LOC (15%) 35 files
*.tf557 LOC (13%) 10 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 ".*[-]test[-].*".
    • files with paths like ".*/[Tt]ests/.*".
  • 10 files match defined criteria (3,577 LOC, 85.0% vs. main code):
    • 9 *.go files (3,551 LOC)
    • 1 *.sh files (26 LOC)
  • " *.go" is biggest, containing 99.27% of LOC.
  • " *.sh" is smallest, containing 0.73% of LOC.


*.go3551 LOC (99%) 9 files
*.sh26 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".
  • 6 files match defined criteria (320 LOC, 7.6% vs. main code). All matches are in *.sh files.


*.sh320 LOC (100%) 6 files
Other Code
mod
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*/[.]dockerignore".
  • 10 files match defined criteria (418 LOC, 9.9% vs. main code):
    • 5 *.md files (320 LOC)
    • 1 *.mod files (66 LOC)
    • 3 *.txt files (27 LOC)
    • 1 *.yaml files (5 LOC)
  • " *.md" is biggest, containing 76.56% of LOC.
  • " *.yaml" is smallest, containing 1.2% of LOC.


*.md320 LOC (76%) 5 files
*.mod66 LOC (15%) 1 file
*.txt27 LOC (6%) 3 files
*.yaml5 LOC (1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 15:48