apache / pulsar
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
proto
cmd
properties
ini
mod
cfg
patch
lua
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.

main313980 LOC (45%) 2,759 files
test320535 LOC (46%) 1,751 files
generated0 LOC (0%) 0 files
build and deployment18190 LOC (2%) 147 files
other33620 LOC (4%) 241 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
lua
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 2759 files match defined criteria (313,980 LOC, 100.0% vs. main code):
    • 2,584 *.java files (300,719 LOC)
    • 15 *.go files (4,959 LOC)
    • 46 *.xml files (3,545 LOC)
    • 32 *.py files (1,957 LOC)
    • 13 *.proto files (1,806 LOC)
    • 55 *.yaml files (611 LOC)
    • 8 *.tf files (246 LOC)
    • 1 *.lua files (45 LOC)
    • 1 *.tfvars files (33 LOC)
    • 1 *.rdf files (29 LOC)
    • 2 *.cfg files (20 LOC)
    • 1 *.js files (10 LOC)
  • " *.java" is biggest, containing 95.78% of LOC.
  • " *.js" is smallest, containing 0% of LOC.


*.java300719 LOC (95%) 2,584 files
*.go4959 LOC (1%) 15 files
*.xml3545 LOC (1%) 46 files
*.py1957 LOC (<1%) 32 files
*.proto1806 LOC (<1%) 13 files
*.yaml611 LOC (<1%) 55 files
*.tf246 LOC (<1%) 8 files
*.lua45 LOC (<1%) 1 file
*.tfvars33 LOC (<1%) 1 file
*.rdf29 LOC (<1%) 1 file
*.cfg20 LOC (<1%) 2 files
*.js10 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
proto
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*_tests[.].*".
  • 1751 files match defined criteria (320,535 LOC, 102.1% vs. main code):
    • 1,631 *.java files (316,843 LOC)
    • 56 *.xml files (1,861 LOC)
    • 9 *.go files (1,045 LOC)
    • 27 *.yaml files (283 LOC)
    • 14 *.sh files (176 LOC)
    • 8 *.py files (175 LOC)
    • 4 *.proto files (140 LOC)
    • 1 *.avsc files (11 LOC)
    • 1 *.html files (1 LOC)
  • " *.java" is biggest, containing 98.85% of LOC.
  • " *.html" is smallest, containing 0% of LOC.


*.java316843 LOC (98%) 1,631 files
*.xml1861 LOC (<1%) 56 files
*.go1045 LOC (<1%) 9 files
*.yaml283 LOC (<1%) 27 files
*.sh176 LOC (<1%) 14 files
*.py175 LOC (<1%) 8 files
*.proto140 LOC (<1%) 4 files
*.avsc11 LOC (<1%) 1 file
*.html1 LOC (<1%) 1 file
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".
  • 147 files match defined criteria (18,190 LOC, 5.8% vs. main code):
    • 118 *.xml files (16,704 LOC)
    • 29 *.sh files (1,486 LOC)
  • " *.xml" is biggest, containing 91.83% of LOC.
  • " *.sh" is smallest, containing 8.17% of LOC.


*.xml16704 LOC (91%) 118 files
*.sh1486 LOC (8%) 29 files
Other Code
txt
ini
properties
mod
patch
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]ini".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*[.]patch".
  • 241 files match defined criteria (33,620 LOC, 10.7% vs. main code):
    • 16 *.json files (17,227 LOC)
    • 111 *.md files (10,480 LOC)
    • 36 *.txt files (3,906 LOC)
    • 58 *.java files (983 LOC)
    • 4 *.ini files (254 LOC)
    • 1 *.xml files (236 LOC)
    • 4 *.properties files (184 LOC)
    • 8 *.go files (128 LOC)
    • 2 *.mod files (114 LOC)
    • 1 *.patch files (108 LOC)
  • " *.json" is biggest, containing 51.24% of LOC.
  • " *.patch" is smallest, containing 0.32% of LOC.


*.json17227 LOC (51%) 16 files
*.md10480 LOC (31%) 111 files
*.txt3906 LOC (11%) 36 files
*.java983 LOC (2%) 58 files
*.ini254 LOC (<1%) 4 files
*.xml236 LOC (<1%) 1 file
*.properties184 LOC (<1%) 4 files
*.go128 LOC (<1%) 8 files
*.mod114 LOC (<1%) 2 files
*.patch108 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 16:01