apache / rocketmq-clients
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
ipp
txt
proto
csproj
mod
in
clang-format
gitmodules
properties
clang-tidy
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.

main53407 LOC (74%) 585 files
test11074 LOC (15%) 132 files
generated3380 LOC (4%) 64 files
build and deployment819 LOC (1%) 11 files
other2939 LOC (4%) 61 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 585 files match defined criteria (53,407 LOC, 100.0% vs. main code):
    • 45 *.go files (10,137 LOC)
    • 140 *.java files (8,744 LOC)
    • 60 *.cpp files (7,234 LOC)
    • 17 *.rs files (6,700 LOC)
    • 87 *.cs files (5,971 LOC)
    • 49 *.py files (3,890 LOC)
    • 106 *.h files (3,689 LOC)
    • 12 *.proto files (3,316 LOC)
    • 52 *.ts files (2,155 LOC)
    • 7 *.php files (582 LOC)
    • 3 *.cmake files (574 LOC)
    • 5 *.xml files (177 LOC)
    • 1 *.bzl files (164 LOC)
    • 1 *.toml files (74 LOC)
  • " *.go" is biggest, containing 18.98% of LOC.
  • " *.toml" is smallest, containing 0.14% of LOC.


*.go10137 LOC (18%) 45 files
*.java8744 LOC (16%) 140 files
*.cpp7234 LOC (13%) 60 files
*.rs6700 LOC (12%) 17 files
*.cs5971 LOC (11%) 87 files
*.py3890 LOC (7%) 49 files
*.h3689 LOC (6%) 106 files
*.proto3316 LOC (6%) 12 files
*.ts2155 LOC (4%) 52 files
*.php582 LOC (1%) 7 files
*.cmake574 LOC (1%) 3 files
*.xml177 LOC (<1%) 5 files
*.bzl164 LOC (<1%) 1 file
*.toml74 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
csproj
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]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*_mock[.][a-zA-Z0-9_\-]+".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/[Mm]ocks/.*".
  • 132 files match defined criteria (11,074 LOC, 20.7% vs. main code):
    • 40 *.java files (4,342 LOC)
    • 34 *.cs files (3,279 LOC)
    • 10 *.go files (1,452 LOC)
    • 25 *.cpp files (1,001 LOC)
    • 6 *.ts files (452 LOC)
    • 10 *.h files (238 LOC)
    • 4 *.py files (221 LOC)
    • 1 *.xml files (52 LOC)
    • 1 *.csproj files (22 LOC)
    • 1 *.sh files (15 LOC)
  • " *.java" is biggest, containing 39.21% of LOC.
  • " *.sh" is smallest, containing 0.14% of LOC.


*.java4342 LOC (39%) 40 files
*.cs3279 LOC (29%) 34 files
*.go1452 LOC (13%) 10 files
*.cpp1001 LOC (9%) 25 files
*.ts452 LOC (4%) 6 files
*.h238 LOC (2%) 10 files
*.py221 LOC (1%) 4 files
*.xml52 LOC (<1%) 1 file
*.csproj22 LOC (<1%) 1 file
*.sh15 LOC (<1%) 1 file
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.](py|java|h|cc|cpp|m|rb|php)" AND any line of content like ".*Generated by the protocol buffer compiler[.][ ]+DO NOT EDIT[!].*".
  • 64 files match defined criteria (3,380 LOC, 6.3% vs. main code). All matches are in *.php files.


*.php3380 LOC (100%) 64 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
csproj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/pom[.]xml".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*[.]csproj".
  • 11 files match defined criteria (819 LOC, 1.5% vs. main code):
    • 4 *.xml files (715 LOC)
    • 6 *.sh files (66 LOC)
    • 1 *.csproj files (38 LOC)
  • " *.xml" is biggest, containing 87.3% of LOC.
  • " *.csproj" is smallest, containing 4.64% of LOC.


*.xml715 LOC (87%) 4 files
*.sh66 LOC (8%) 6 files
*.csproj38 LOC (4%) 1 file
Other Code
txt
mod
properties
csproj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
  • 61 files match defined criteria (2,939 LOC, 5.5% vs. main code):
    • 8 *.cpp files (776 LOC)
    • 11 *.md files (676 LOC)
    • 6 *.rs files (403 LOC)
    • 8 *.cs files (362 LOC)
    • 16 *.txt files (259 LOC)
    • 1 *.xml files (222 LOC)
    • 4 *.json files (92 LOC)
    • 1 *.mod files (54 LOC)
    • 2 *.cjs files (37 LOC)
    • 2 *.ts files (30 LOC)
    • 1 *.properties files (15 LOC)
    • 1 *.csproj files (13 LOC)
  • " *.cpp" is biggest, containing 26.4% of LOC.
  • " *.csproj" is smallest, containing 0.44% of LOC.


*.cpp776 LOC (26%) 8 files
*.md676 LOC (23%) 11 files
*.rs403 LOC (13%) 6 files
*.cs362 LOC (12%) 8 files
*.txt259 LOC (8%) 16 files
*.xml222 LOC (7%) 1 file
*.json92 LOC (3%) 4 files
*.mod54 LOC (1%) 1 file
*.cjs37 LOC (1%) 2 files
*.ts30 LOC (1%) 2 files
*.properties15 LOC (<1%) 1 file
*.csproj13 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 20:39