GoogleCloudPlatform / grpc-gcp-go
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
mod
proto
cfg
txt
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.

main14683 LOC (69%) 33 files
test5051 LOC (23%) 15 files
generated0 LOC (0%) 0 files
build and deployment38 LOC (<1%) 5 files
other1489 LOC (7%) 43 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 33 files match defined criteria (14,683 LOC, 100.0% vs. main code):
    • 24 *.go files (14,292 LOC)
    • 6 *.yaml files (220 LOC)
    • 2 *.proto files (153 LOC)
    • 1 *.cfg files (18 LOC)
  • " *.go" is biggest, containing 97.34% of LOC.
  • " *.cfg" is smallest, containing 0.12% of LOC.


*.go14292 LOC (97%) 24 files
*.yaml220 LOC (1%) 6 files
*.proto153 LOC (1%) 2 files
*.cfg18 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
proto
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/[Mm]ocks/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/test[.].*".
  • 15 files match defined criteria (5,051 LOC, 34.4% vs. main code):
    • 13 *.go files (5,014 LOC)
    • 1 *.proto files (34 LOC)
    • 1 *.sh files (3 LOC)
  • " *.go" is biggest, containing 99.27% of LOC.
  • " *.sh" is smallest, containing 0.06% of LOC.


*.go5014 LOC (99%) 13 files
*.proto34 LOC (<1%) 1 file
*.sh3 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 ".*/[.]gitmodules".
  • 5 files match defined criteria (38 LOC, 0.3% vs. main code). All matches are in *.sh files.


*.sh38 LOC (100%) 5 files
Other Code
mod
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
  • 43 files match defined criteria (1,489 LOC, 10.1% vs. main code):
    • 25 *.go files (961 LOC)
    • 8 *.md files (285 LOC)
    • 9 *.mod files (214 LOC)
    • 1 *.json files (29 LOC)
  • " *.go" is biggest, containing 64.54% of LOC.
  • " *.json" is smallest, containing 1.95% of LOC.


*.go961 LOC (64%) 25 files
*.md285 LOC (19%) 8 files
*.mod214 LOC (14%) 9 files
*.json29 LOC (1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 14:31