apache / pulsar-manager
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
properties
babelrc
editorconfig
eslintignore
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.

main25747 LOC (83%) 245 files
test1851 LOC (6%) 21 files
generated0 LOC (0%) 0 files
build and deployment656 LOC (2%) 12 files
other2448 LOC (7%) 109 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 ".*".
  • 245 files match defined criteria (25,747 LOC, 100.0% vs. main code):
    • 49 *.vue files (13,048 LOC)
    • 73 *.js files (5,729 LOC)
    • 107 *.java files (5,715 LOC)
    • 5 *.sql files (647 LOC)
    • 7 *.scss files (540 LOC)
    • 2 *.html files (38 LOC)
    • 1 *.css files (25 LOC)
    • 1 *.yml files (5 LOC)
  • " *.vue" is biggest, containing 50.68% of LOC.
  • " *.yml" is smallest, containing 0.02% of LOC.


*.vue13048 LOC (50%) 49 files
*.js5729 LOC (22%) 73 files
*.java5715 LOC (22%) 107 files
*.sql647 LOC (2%) 5 files
*.scss540 LOC (2%) 7 files
*.html38 LOC (<1%) 2 files
*.css25 LOC (<1%) 1 file
*.yml5 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]est/.*".
  • 21 files match defined criteria (1,851 LOC, 7.2% vs. main code). All matches are in *.java files.


*.java1851 LOC (100%) 21 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 ".*[.]gradle".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
  • 12 files match defined criteria (656 LOC, 2.5% vs. main code):
    • 3 *.js files (342 LOC)
    • 4 *.gradle files (169 LOC)
    • 1 *.bat files (70 LOC)
    • 3 *.sh files (52 LOC)
    • 1 *.yml files (23 LOC)
  • " *.js" is biggest, containing 52.13% of LOC.
  • " *.yml" is smallest, containing 3.51% of LOC.


*.js342 LOC (52%) 3 files
*.gradle169 LOC (25%) 4 files
*.bat70 LOC (10%) 1 file
*.sh52 LOC (7%) 3 files
*.yml23 LOC (3%) 1 file
Other Code
txt
properties
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 ".*[.]properties".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*[.]svg".
  • 109 files match defined criteria (2,448 LOC, 9.5% vs. main code):
    • 73 *.txt files (1,530 LOC)
    • 5 *.md files (546 LOC)
    • 3 *.properties files (201 LOC)
    • 2 *.json files (145 LOC)
    • 26 *.svg files (26 LOC)
  • " *.txt" is biggest, containing 62.5% of LOC.
  • " *.svg" is smallest, containing 1.06% of LOC.


*.txt1530 LOC (62%) 73 files
*.md546 LOC (22%) 5 files
*.properties201 LOC (8%) 3 files
*.json145 LOC (5%) 2 files
*.svg26 LOC (1%) 26 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 21:31