apache / pulsar-client-node
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
eslintignore
gyp
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.

main3280 LOC (54%) 43 files
test1913 LOC (31%) 13 files
generated0 LOC (0%) 0 files
build and deployment94 LOC (1%) 7 files
other717 LOC (11%) 25 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
gyp
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 43 files match defined criteria (3,280 LOC, 100.0% vs. main code):
    • 13 *.cc files (2,167 LOC)
    • 16 *.h files (361 LOC)
    • 1 *.ts files (332 LOC)
    • 11 *.js files (256 LOC)
    • 1 *.gyp files (118 LOC)
    • 1 *.py files (46 LOC)
  • " *.cc" is biggest, containing 66.07% of LOC.
  • " *.py" is smallest, containing 1.4% of LOC.


*.cc2167 LOC (66%) 13 files
*.h361 LOC (11%) 16 files
*.ts332 LOC (10%) 1 file
*.js256 LOC (7%) 11 files
*.gyp118 LOC (3%) 1 file
*.py46 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 ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*[-]test[-].*".
  • 13 files match defined criteria (1,913 LOC, 58.3% vs. main code):
    • 7 *.js files (1,844 LOC)
    • 6 *.sh files (69 LOC)
  • " *.js" is biggest, containing 96.39% of LOC.
  • " *.sh" is smallest, containing 3.61% of LOC.


*.js1844 LOC (96%) 7 files
*.sh69 LOC (3%) 6 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 ".*/package[.]json".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]bat".
  • 7 files match defined criteria (94 LOC, 2.9% vs. main code):
    • 6 *.sh files (84 LOC)
    • 1 *.bat files (10 LOC)
  • " *.sh" is biggest, containing 89.36% of LOC.
  • " *.bat" is smallest, containing 10.64% of LOC.


*.sh84 LOC (89%) 6 files
*.bat10 LOC (10%) 1 file
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Ee]xamples/.*".
    • 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 ".*/[.]eslintignore".
  • 25 files match defined criteria (717 LOC, 21.9% vs. main code):
    • 17 *.js files (417 LOC)
    • 5 *.json files (157 LOC)
    • 1 *.md files (127 LOC)
    • 2 *.txt files (16 LOC)
  • " *.js" is biggest, containing 58.16% of LOC.
  • " *.txt" is smallest, containing 2.23% of LOC.


*.js417 LOC (58%) 17 files
*.json157 LOC (21%) 5 files
*.md127 LOC (17%) 1 file
*.txt16 LOC (2%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 19:49