apache / pulsar-release
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
ini
properties
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.

main452 LOC (1%) 8 files
test11387 LOC (48%) 149 files
generated0 LOC (0%) 0 files
build and deployment1042 LOC (4%) 18 files
other10528 LOC (44%) 39 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 ".*".
  • 8 files match defined criteria (452 LOC, 100.0% vs. main code):
    • 4 *.xml files (264 LOC)
    • 3 *.py files (173 LOC)
    • 1 *.yml files (15 LOC)
  • " *.xml" is biggest, containing 58.41% of LOC.
  • " *.yml" is smallest, containing 3.32% of LOC.


*.xml264 LOC (58%) 4 files
*.py173 LOC (38%) 3 files
*.yml15 LOC (3%) 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[-].*".
  • 149 files match defined criteria (11,387 LOC, 2519.2% vs. main code):
    • 102 *.java files (10,166 LOC)
    • 28 *.xml files (795 LOC)
    • 3 *.yml files (285 LOC)
    • 11 *.sh files (90 LOC)
    • 5 *.py files (51 LOC)
  • " *.java" is biggest, containing 89.28% of LOC.
  • " *.py" is smallest, containing 0.45% of LOC.


*.java10166 LOC (89%) 102 files
*.xml795 LOC (6%) 28 files
*.yml285 LOC (2%) 3 files
*.sh90 LOC (<1%) 11 files
*.py51 LOC (<1%) 5 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 ".*/pom[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/docker[-]compose[.]yml".
  • 18 files match defined criteria (1,042 LOC, 230.5% vs. main code):
    • 9 *.xml files (924 LOC)
    • 9 *.sh files (118 LOC)
  • " *.xml" is biggest, containing 88.68% of LOC.
  • " *.sh" is smallest, containing 11.32% of LOC.


*.xml924 LOC (88%) 9 files
*.sh118 LOC (11%) 9 files
Other Code
txt
properties
ini
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]ini".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
  • 39 files match defined criteria (10,528 LOC, 2329.2% vs. main code):
    • 6 *.json files (8,408 LOC)
    • 28 *.txt files (1,973 LOC)
    • 3 *.md files (80 LOC)
    • 1 *.properties files (34 LOC)
    • 1 *.ini files (33 LOC)
  • " *.json" is biggest, containing 79.86% of LOC.
  • " *.ini" is smallest, containing 0.31% of LOC.


*.json8408 LOC (79%) 6 files
*.txt1973 LOC (18%) 28 files
*.md80 LOC (<1%) 3 files
*.properties34 LOC (<1%) 1 file
*.ini33 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-11 02:04