apache / pulsar-client-cpp
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
spec
in
clang-format
diff
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.

main30326 LOC (61%) 334 files
test16483 LOC (33%) 109 files
generated0 LOC (0%) 0 files
build and deployment371 LOC (<1%) 21 files
other1894 LOC (3%) 39 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
spec
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 334 files match defined criteria (30,326 LOC, 100.0% vs. main code):
    • 122 *.cc files (19,446 LOC)
    • 196 *.h files (9,012 LOC)
    • 1 *.proto files (918 LOC)
    • 6 *.cmake files (435 LOC)
    • 1 *.xml files (167 LOC)
    • 1 *.hpp files (132 LOC)
    • 4 *.py files (104 LOC)
    • 1 *.spec files (80 LOC)
    • 1 *.in files (24 LOC)
    • 1 *.yaml files (8 LOC)
  • " *.cc" is biggest, containing 64.12% of LOC.
  • " *.yaml" is smallest, containing 0.03% of LOC.


*.cc19446 LOC (64%) 122 files
*.h9012 LOC (29%) 196 files
*.proto918 LOC (3%) 1 file
*.cmake435 LOC (1%) 6 files
*.xml167 LOC (<1%) 1 file
*.hpp132 LOC (<1%) 1 file
*.py104 LOC (<1%) 4 files
*.spec80 LOC (<1%) 1 file
*.in24 LOC (<1%) 1 file
*.yaml8 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 ".*/[Tt]ests/.*".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/[Mm]ocks/.*".
    • files with paths like ".*[-]test[-].*".
  • 109 files match defined criteria (16,483 LOC, 54.4% vs. main code):
    • 85 *.cc files (15,571 LOC)
    • 14 *.h files (529 LOC)
    • 5 *.sh files (172 LOC)
    • 2 *.cmake files (116 LOC)
    • 3 *.proto files (95 LOC)
  • " *.cc" is biggest, containing 94.47% of LOC.
  • " *.proto" is smallest, containing 0.58% of LOC.


*.cc15571 LOC (94%) 85 files
*.h529 LOC (3%) 14 files
*.sh172 LOC (1%) 5 files
*.cmake116 LOC (<1%) 2 files
*.proto95 LOC (<1%) 3 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*[.]sh".
  • 21 files match defined criteria (371 LOC, 1.2% vs. main code). All matches are in *.sh files.


*.sh371 LOC (100%) 21 files
Other Code
txt
diff
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]txt".
    • 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 ".*[.]diff".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 39 files match defined criteria (1,894 LOC, 6.2% vs. main code):
    • 16 *.txt files (938 LOC)
    • 6 *.md files (383 LOC)
    • 6 *.c files (278 LOC)
    • 7 *.cc files (163 LOC)
    • 3 *.json files (106 LOC)
    • 1 *.diff files (26 LOC)
  • " *.txt" is biggest, containing 49.52% of LOC.
  • " *.diff" is smallest, containing 1.37% of LOC.


*.txt938 LOC (49%) 16 files
*.md383 LOC (20%) 6 files
*.c278 LOC (14%) 6 files
*.cc163 LOC (8%) 7 files
*.json106 LOC (5%) 3 files
*.diff26 LOC (1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 20:41