apache / rocketmq
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
cmd
properties
txt
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.

main169271 LOC (67%) 1,488 files
test77439 LOC (31%) 635 files
generated0 LOC (0%) 0 files
build and deployment2156 LOC (<1%) 24 files
other576 LOC (<1%) 19 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 ".*".
  • 1488 files match defined criteria (169,271 LOC, 100.0% vs. main code):
    • 1,472 *.java files (167,016 LOC)
    • 13 *.xml files (1,850 LOC)
    • 1 *.py files (298 LOC)
    • 1 *.bzl files (103 LOC)
    • 1 *.sql files (4 LOC)
  • " *.java" is biggest, containing 98.67% of LOC.
  • " *.sql" is smallest, containing 0% of LOC.


*.java167016 LOC (98%) 1,472 files
*.xml1850 LOC (1%) 13 files
*.py298 LOC (<1%) 1 file
*.bzl103 LOC (<1%) 1 file
*.sql4 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/.*".
  • 635 files match defined criteria (77,439 LOC, 45.7% vs. main code):
    • 617 *.java files (76,362 LOC)
    • 18 *.xml files (1,077 LOC)
  • " *.java" is biggest, containing 98.61% of LOC.
  • " *.xml" is smallest, containing 1.39% of LOC.


*.java76362 LOC (98%) 617 files
*.xml1077 LOC (1%) 18 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 ".*/pom[.]xml".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 24 files match defined criteria (2,156 LOC, 1.3% vs. main code):
    • 18 *.xml files (2,065 LOC)
    • 6 *.sh files (91 LOC)
  • " *.xml" is biggest, containing 95.78% of LOC.
  • " *.sh" is smallest, containing 4.22% of LOC.


*.xml2065 LOC (95%) 18 files
*.sh91 LOC (4%) 6 files
Other Code
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
  • 19 files match defined criteria (576 LOC, 0.3% vs. main code):
    • 4 *.md files (319 LOC)
    • 12 *.properties files (248 LOC)
    • 3 *.json files (9 LOC)
  • " *.md" is biggest, containing 55.38% of LOC.
  • " *.json" is smallest, containing 1.56% of LOC.


*.md319 LOC (55%) 4 files
*.properties248 LOC (43%) 12 files
*.json9 LOC (1%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 16:07