GoogleCloudPlatform / grpc-gcp-java
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
proto
properties
cfg
gitattributes
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.

main6019 LOC (7%) 32 files
test13004 LOC (16%) 94 files
generated57858 LOC (73%) 153 files
build and deployment715 LOC (<1%) 13 files
other899 LOC (1%) 23 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 ".*".
  • 32 files match defined criteria (6,019 LOC, 100.0% vs. main code):
    • 23 *.java files (5,711 LOC)
    • 6 *.yaml files (212 LOC)
    • 1 *.proto files (70 LOC)
    • 1 *.cfg files (18 LOC)
    • 1 *.toml files (8 LOC)
  • " *.java" is biggest, containing 94.88% of LOC.
  • " *.toml" is smallest, containing 0.13% of LOC.


*.java5711 LOC (94%) 23 files
*.yaml212 LOC (3%) 6 files
*.proto70 LOC (1%) 1 file
*.cfg18 LOC (<1%) 1 file
*.toml8 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 ".*/e2e/.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[-]test[-].*".
  • 94 files match defined criteria (13,004 LOC, 216.0% vs. main code):
    • 60 *.java files (9,428 LOC)
    • 16 *.proto files (2,440 LOC)
    • 7 *.yaml files (514 LOC)
    • 3 *.xml files (330 LOC)
    • 4 *.gradle files (163 LOC)
    • 2 *.bat files (122 LOC)
    • 2 *.sh files (7 LOC)
  • " *.java" is biggest, containing 72.5% of LOC.
  • " *.sh" is smallest, containing 0.05% of LOC.


*.java9428 LOC (72%) 60 files
*.proto2440 LOC (18%) 16 files
*.yaml514 LOC (3%) 7 files
*.xml330 LOC (2%) 3 files
*.gradle163 LOC (1%) 4 files
*.bat122 LOC (<1%) 2 files
*.sh7 LOC (<1%) 2 files
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with any line of content like "//[ ]*Generated by .*".
    • files with paths like ".*[.](py|java|h|cc|cpp|m|rb|php)" AND any line of content like ".*Generated by the protocol buffer compiler[.][ ]+DO NOT EDIT[!].*".
  • 153 files match defined criteria (57,858 LOC, 961.3% vs. main code). All matches are in *.java files.


*.java57858 LOC (100%) 153 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 ".*[.]gradle".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*/pom[.]xml".
    • files with paths like ".*/[.]gitattributes".
  • 13 files match defined criteria (715 LOC, 11.9% vs. main code):
    • 6 *.gradle files (296 LOC)
    • 4 *.bat files (254 LOC)
    • 1 *.xml files (133 LOC)
    • 2 *.sh files (32 LOC)
  • " *.gradle" is biggest, containing 41.4% of LOC.
  • " *.sh" is smallest, containing 4.48% of LOC.


*.gradle296 LOC (41%) 6 files
*.bat254 LOC (35%) 4 files
*.xml133 LOC (18%) 1 file
*.sh32 LOC (4%) 2 files
Other Code
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
  • 23 files match defined criteria (899 LOC, 14.9% vs. main code):
    • 14 *.md files (661 LOC)
    • 5 *.json files (208 LOC)
    • 4 *.properties files (30 LOC)
  • " *.md" is biggest, containing 73.53% of LOC.
  • " *.properties" is smallest, containing 3.34% of LOC.


*.md661 LOC (73%) 14 files
*.json208 LOC (23%) 5 files
*.properties30 LOC (3%) 4 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 14:31