apache / pulsar-client-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
txt
proto
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.

main24362 LOC (51%) 198 files
test18505 LOC (39%) 94 files
generated0 LOC (0%) 0 files
build and deployment99 LOC (<1%) 4 files
other4285 LOC (9%) 36 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 ".*".
  • 198 files match defined criteria (24,362 LOC, 100.0% vs. main code):
    • 196 *.go files (23,418 LOC)
    • 1 *.proto files (922 LOC)
    • 1 *.toml files (22 LOC)
  • " *.go" is biggest, containing 96.13% of LOC.
  • " *.toml" is smallest, containing 0.09% of LOC.


*.go23418 LOC (96%) 196 files
*.proto922 LOC (3%) 1 file
*.toml22 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 ".*_test[.].*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*/test_.*".
  • 94 files match defined criteria (18,505 LOC, 76.0% vs. main code):
    • 88 *.go files (18,343 LOC)
    • 4 *.sh files (104 LOC)
    • 2 *.proto files (58 LOC)
  • " *.go" is biggest, containing 99.12% of LOC.
  • " *.proto" is smallest, containing 0.31% of LOC.


*.go18343 LOC (99%) 88 files
*.sh104 LOC (<1%) 4 files
*.proto58 LOC (<1%) 2 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 4 files match defined criteria (99 LOC, 0.4% vs. main code). All matches are in *.sh files.


*.sh99 LOC (100%) 4 files
Other Code
txt
mod
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 ".*/[Ee]xamples/.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/go[.]mod".
  • 36 files match defined criteria (4,285 LOC, 17.6% vs. main code):
    • 24 *.txt files (2,932 LOC)
    • 7 *.md files (1,108 LOC)
    • 4 *.go files (129 LOC)
    • 1 *.mod files (116 LOC)
  • " *.txt" is biggest, containing 68.42% of LOC.
  • " *.mod" is smallest, containing 2.71% of LOC.


*.txt2932 LOC (68%) 24 files
*.md1108 LOC (25%) 7 files
*.go129 LOC (3%) 4 files
*.mod116 LOC (2%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 19:52