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
in
clang-format
spec
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.

main28931 LOC (62%) 324 files
test15008 LOC (32%) 100 files
generated0 LOC (0%) 0 files
build and deployment267 LOC (<1%) 19 files
other1865 LOC (4%) 34 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 ".*".
  • 324 files match defined criteria (28,931 LOC, 100.0% vs. main code):
    • 122 *.cc files (18,935 LOC)
    • 191 *.h files (8,501 LOC)
    • 1 *.proto files (901 LOC)
    • 1 *.xml files (167 LOC)
    • 1 *.hpp files (132 LOC)
    • 4 *.py files (98 LOC)
    • 1 *.cmake files (93 LOC)
    • 1 *.spec files (72 LOC)
    • 1 *.in files (24 LOC)
    • 1 *.yaml files (8 LOC)
  • " *.cc" is biggest, containing 65.45% of LOC.
  • " *.yaml" is smallest, containing 0.03% of LOC.


*.cc18935 LOC (65%) 122 files
*.h8501 LOC (29%) 191 files
*.proto901 LOC (3%) 1 file
*.xml167 LOC (<1%) 1 file
*.hpp132 LOC (<1%) 1 file
*.py98 LOC (<1%) 4 files
*.cmake93 LOC (<1%) 1 file
*.spec72 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 ".*[-]test[-].*".
    • files with paths like ".*/[Tt]ests/.*".
  • 100 files match defined criteria (15,008 LOC, 51.9% vs. main code):
    • 80 *.cc files (14,331 LOC)
    • 10 *.h files (361 LOC)
    • 5 *.sh files (170 LOC)
    • 3 *.proto files (95 LOC)
    • 2 *.yml files (51 LOC)
  • " *.cc" is biggest, containing 95.49% of LOC.
  • " *.yml" is smallest, containing 0.34% of LOC.


*.cc14331 LOC (95%) 80 files
*.h361 LOC (2%) 10 files
*.sh170 LOC (1%) 5 files
*.proto95 LOC (<1%) 3 files
*.yml51 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 ".*/docker[-]compose[.]yml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 19 files match defined criteria (267 LOC, 0.9% vs. main code). All matches are in *.sh files.


*.sh267 LOC (100%) 19 files
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 34 files match defined criteria (1,865 LOC, 6.4% vs. main code):
    • 15 *.txt files (1,121 LOC)
    • 6 *.c files (278 LOC)
    • 4 *.md files (268 LOC)
    • 7 *.cc files (163 LOC)
    • 2 *.json files (35 LOC)
  • " *.txt" is biggest, containing 60.11% of LOC.
  • " *.json" is smallest, containing 1.88% of LOC.


*.txt1121 LOC (60%) 15 files
*.c278 LOC (14%) 6 files
*.md268 LOC (14%) 4 files
*.cc163 LOC (8%) 7 files
*.json35 LOC (1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-11 02:33