apache / pulsar-client-python
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
clang-format
patch
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.

main2572 LOC (40%) 31 files
test2547 LOC (40%) 9 files
generated0 LOC (0%) 0 files
build and deployment412 LOC (6%) 11 files
other778 LOC (12%) 13 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 31 files match defined criteria (2,572 LOC, 100.0% vs. main code):
    • 14 *.py files (1,399 LOC)
    • 12 *.cc files (927 LOC)
    • 2 *.h files (116 LOC)
    • 1 *.cmake files (93 LOC)
    • 1 *.yml files (27 LOC)
    • 1 *.yaml files (10 LOC)
  • " *.py" is biggest, containing 54.39% of LOC.
  • " *.yaml" is smallest, containing 0.39% of LOC.


*.py1399 LOC (54%) 14 files
*.cc927 LOC (36%) 12 files
*.h116 LOC (4%) 2 files
*.cmake93 LOC (3%) 1 file
*.yml27 LOC (1%) 1 file
*.yaml10 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*[-]test[-].*".
  • 9 files match defined criteria (2,547 LOC, 99.0% vs. main code):
    • 5 *.py files (2,467 LOC)
    • 4 *.sh files (80 LOC)
  • " *.py" is biggest, containing 96.86% of LOC.
  • " *.sh" is smallest, containing 3.14% of LOC.


*.py2467 LOC (96%) 5 files
*.sh80 LOC (3%) 4 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 ".*[.]sh".
    • files with paths like ".*/[.]gitmodules".
  • 11 files match defined criteria (412 LOC, 16.0% vs. main code). All matches are in *.sh files.


*.sh412 LOC (100%) 11 files
Other Code
patch
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]patch".
  • 13 files match defined criteria (778 LOC, 30.2% vs. main code):
    • 4 *.md files (329 LOC)
    • 1 *.patch files (171 LOC)
    • 2 *.txt files (141 LOC)
    • 4 *.py files (112 LOC)
    • 1 *.avsc files (21 LOC)
    • 1 *.json files (4 LOC)
  • " *.md" is biggest, containing 42.29% of LOC.
  • " *.json" is smallest, containing 0.51% of LOC.


*.md329 LOC (42%) 4 files
*.patch171 LOC (21%) 1 file
*.txt141 LOC (18%) 2 files
*.py112 LOC (14%) 4 files
*.avsc21 LOC (2%) 1 file
*.json4 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-11 02:33