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.

main3093 LOC (54%) 44 files
test1743 LOC (30%) 13 files
generated0 LOC (0%) 0 files
build and deployment258 LOC (4%) 9 files
other542 LOC (9%) 18 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 ".*".
  • 44 files match defined criteria (3,093 LOC, 100.0% vs. main code):
    • 13 *.cc files (2,010 LOC)
    • 15 *.h files (343 LOC)
    • 1 *.ts files (317 LOC)
    • 11 *.js files (253 LOC)
    • 1 *.gyp files (118 LOC)
    • 2 *.py files (44 LOC)
    • 1 *.yaml files (8 LOC)
  • " *.cc" is biggest, containing 64.99% of LOC.
  • " *.yaml" is smallest, containing 0.26% of LOC.


*.cc2010 LOC (64%) 13 files
*.h343 LOC (11%) 15 files
*.ts317 LOC (10%) 1 file
*.js253 LOC (8%) 11 files
*.gyp118 LOC (3%) 1 file
*.py44 LOC (1%) 2 files
*.yaml8 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,743 LOC, 56.4% vs. main code):
    • 7 *.js files (1,674 LOC)
    • 6 *.sh files (69 LOC)
  • " *.js" is biggest, containing 96.04% of LOC.
  • " *.sh" is smallest, containing 3.96% of LOC.


*.js1674 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]bat".
  • 9 files match defined criteria (258 LOC, 8.3% vs. main code):
    • 8 *.sh files (248 LOC)
    • 1 *.bat files (10 LOC)
  • " *.sh" is biggest, containing 96.12% of LOC.
  • " *.bat" is smallest, containing 3.88% of LOC.


*.sh248 LOC (96%) 8 files
*.bat10 LOC (3%) 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 ".*[.]json".
    • 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 ".*/[.]eslintignore".
  • 18 files match defined criteria (542 LOC, 17.5% vs. main code):
    • 11 *.js files (233 LOC)
    • 4 *.json files (166 LOC)
    • 1 *.md files (127 LOC)
    • 2 *.txt files (16 LOC)
  • " *.js" is biggest, containing 42.99% of LOC.
  • " *.txt" is smallest, containing 2.95% of LOC.


*.js233 LOC (42%) 11 files
*.json166 LOC (30%) 4 files
*.md127 LOC (23%) 1 file
*.txt16 LOC (2%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 22:08