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.

main16532 LOC (48%) 115 files
test13838 LOC (40%) 69 files
generated0 LOC (0%) 0 files
build and deployment9 LOC (<1%) 1 file
other3853 LOC (11%) 35 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 ".*".
  • 115 files match defined criteria (16,532 LOC, 100.0% vs. main code):
    • 114 *.go files (15,630 LOC)
    • 1 *.proto files (902 LOC)
  • " *.go" is biggest, containing 94.54% of LOC.
  • " *.proto" is smallest, containing 5.46% of LOC.


*.go15630 LOC (94%) 114 files
*.proto902 LOC (5%) 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 ".*[-]tests/.*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*/test_.*".
  • 69 files match defined criteria (13,838 LOC, 83.7% vs. main code):
    • 63 *.go files (13,698 LOC)
    • 4 *.sh files (100 LOC)
    • 2 *.proto files (40 LOC)
  • " *.go" is biggest, containing 98.99% of LOC.
  • " *.proto" is smallest, containing 0.29% of LOC.


*.go13698 LOC (98%) 63 files
*.sh100 LOC (<1%) 4 files
*.proto40 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".
  • 1 file matches defined criteria (9 LOC, 0.1% vs. main code). All matches are in *.sh files.


*.sh9 LOC (100%) 1 file
Other Code
txt
mod
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ee]xamples/.*".
  • 35 files match defined criteria (3,853 LOC, 23.3% vs. main code):
    • 25 *.txt files (2,935 LOC)
    • 5 *.md files (728 LOC)
    • 4 *.go files (129 LOC)
    • 1 *.mod files (61 LOC)
  • " *.txt" is biggest, containing 76.17% of LOC.
  • " *.mod" is smallest, containing 1.58% of LOC.


*.txt2935 LOC (76%) 25 files
*.md728 LOC (18%) 5 files
*.go129 LOC (3%) 4 files
*.mod61 LOC (1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 22:12