GoogleCloudPlatform / pubsub
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
properties
proto
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.

main4944 LOC (26%) 76 files
test9320 LOC (50%) 122 files
generated1189 LOC (6%) 1 file
build and deployment788 LOC (4%) 7 files
other2147 LOC (11%) 21 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 ".*".
  • 76 files match defined criteria (4,944 LOC, 100.0% vs. main code):
    • 74 *.java files (4,836 LOC)
    • 1 *.py files (76 LOC)
    • 1 *.proto files (32 LOC)
  • " *.java" is biggest, containing 97.82% of LOC.
  • " *.proto" is smallest, containing 0.65% of LOC.


*.java4836 LOC (97%) 74 files
*.py76 LOC (1%) 1 file
*.proto32 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 ".*[-]tests/.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*/test_.*".
  • 122 files match defined criteria (9,320 LOC, 188.5% vs. main code):
    • 70 *.java files (6,327 LOC)
    • 11 *.go files (1,277 LOC)
    • 12 *.js files (435 LOC)
    • 4 *.proto files (426 LOC)
    • 15 *.py files (424 LOC)
    • 2 *.xml files (285 LOC)
    • 8 *.sh files (146 LOC)
  • " *.java" is biggest, containing 67.89% of LOC.
  • " *.sh" is smallest, containing 1.57% of LOC.


*.java6327 LOC (67%) 70 files
*.go1277 LOC (13%) 11 files
*.js435 LOC (4%) 12 files
*.proto426 LOC (4%) 4 files
*.py424 LOC (4%) 15 files
*.xml285 LOC (3%) 2 files
*.sh146 LOC (1%) 8 files
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/package[-]lock[.]json".
  • 1 file matches defined criteria (1,189 LOC, 24.0% vs. main code). All matches are in *.json files.


*.json1189 LOC (100%) 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 ".*/pom[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
  • 7 files match defined criteria (788 LOC, 15.9% vs. main code). All matches are in *.xml files.


*.xml788 LOC (100%) 7 files
Other Code
properties
mod
txt
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 ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*[.]properties".
  • 21 files match defined criteria (2,147 LOC, 43.4% vs. main code):
    • 4 *.json files (1,260 LOC)
    • 9 *.md files (811 LOC)
    • 6 *.properties files (53 LOC)
    • 1 *.mod files (20 LOC)
    • 1 *.txt files (3 LOC)
  • " *.json" is biggest, containing 58.69% of LOC.
  • " *.txt" is smallest, containing 0.14% of LOC.


*.json1260 LOC (58%) 4 files
*.md811 LOC (37%) 9 files
*.properties53 LOC (2%) 6 files
*.mod20 LOC (<1%) 1 file
*.txt3 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 14:29