apache / rocketmq-ons-cpp
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
gitmodules
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.

main25828 LOC (90%) 161 files
test1430 LOC (5%) 19 files
generated0 LOC (0%) 0 files
build and deployment258 LOC (<1%) 3 files
other1030 LOC (3%) 21 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 ".*".
  • 161 files match defined criteria (25,828 LOC, 100.0% vs. main code):
    • 137 *.h files (23,645 LOC)
    • 16 *.cpp files (1,437 LOC)
    • 8 *.java files (746 LOC)
  • " *.h" is biggest, containing 91.55% of LOC.
  • " *.java" is smallest, containing 2.89% of LOC.


*.h23645 LOC (91%) 137 files
*.cpp1437 LOC (5%) 16 files
*.java746 LOC (2%) 8 files
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/.*".
  • 19 files match defined criteria (1,430 LOC, 5.5% vs. main code):
    • 15 *.cpp files (1,048 LOC)
    • 3 *.h files (356 LOC)
    • 1 *.java files (26 LOC)
  • " *.cpp" is biggest, containing 73.29% of LOC.
  • " *.java" is smallest, containing 1.82% of LOC.


*.cpp1048 LOC (73%) 15 files
*.h356 LOC (24%) 3 files
*.java26 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 ".*/pom[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/[.]gitignore".
  • 3 files match defined criteria (258 LOC, 1.0% vs. main code):
    • 1 *.xml files (130 LOC)
    • 2 *.sh files (128 LOC)
  • " *.xml" is biggest, containing 50.39% of LOC.
  • " *.sh" is smallest, containing 49.61% of LOC.


*.xml130 LOC (50%) 1 file
*.sh128 LOC (49%) 2 files
Other Code
txt
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 ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[Dd]emos?/.*".
  • 21 files match defined criteria (1,030 LOC, 4.0% vs. main code):
    • 8 *.cpp files (367 LOC)
    • 1 *.json files (351 LOC)
    • 4 *.md files (173 LOC)
    • 7 *.txt files (120 LOC)
    • 1 *.rst files (19 LOC)
  • " *.cpp" is biggest, containing 35.63% of LOC.
  • " *.rst" is smallest, containing 1.84% of LOC.


*.cpp367 LOC (35%) 8 files
*.json351 LOC (34%) 1 file
*.md173 LOC (16%) 4 files
*.txt120 LOC (11%) 7 files
*.rst19 LOC (1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 22:17