apache / activemq-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
m4
txt
vcxproj
in
filters
cfg
spec
mk
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.

main117665 LOC (57%) 1,350 files
test65398 LOC (31%) 499 files
generated16055 LOC (7%) 236 files
build and deployment879 LOC (<1%) 7 files
other5077 LOC (2%) 54 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
filters
vcxproj
cfg
in
spec
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1350 files match defined criteria (117,665 LOC, 100.0% vs. main code):
    • 620 *.cpp files (60,971 LOC)
    • 653 *.h files (34,228 LOC)
    • 3 *.filters files (6,270 LOC)
    • 14 *.c files (5,975 LOC)
    • 4 *.vcxproj files (5,662 LOC)
    • 50 *.java files (3,953 LOC)
    • 1 *.cfg files (256 LOC)
    • 3 *.in files (187 LOC)
    • 1 *.spec files (96 LOC)
    • 1 *.xml files (67 LOC)
  • " *.cpp" is biggest, containing 51.82% of LOC.
  • " *.xml" is smallest, containing 0.06% of LOC.


*.cpp60971 LOC (51%) 620 files
*.h34228 LOC (29%) 653 files
*.filters6270 LOC (5%) 3 files
*.c5975 LOC (5%) 14 files
*.vcxproj5662 LOC (4%) 4 files
*.java3953 LOC (3%) 50 files
*.cfg256 LOC (<1%) 1 file
*.in187 LOC (<1%) 3 files
*.spec96 LOC (<1%) 1 file
*.xml67 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/.*".
    • files with paths like ".*/[Tt]ests/.*".
  • 499 files match defined criteria (65,398 LOC, 55.6% vs. main code):
    • 247 *.cpp files (54,572 LOC)
    • 249 *.h files (10,387 LOC)
    • 3 *.java files (439 LOC)
  • " *.cpp" is biggest, containing 83.45% of LOC.
  • " *.java" is smallest, containing 0.67% of LOC.


*.cpp54572 LOC (83%) 247 files
*.h10387 LOC (15%) 249 files
*.java439 LOC (<1%) 3 files
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 ".*/generated/.*".
  • 236 files match defined criteria (16,055 LOC, 13.6% vs. main code):
    • 118 *.cpp files (11,851 LOC)
    • 118 *.h files (4,204 LOC)
  • " *.cpp" is biggest, containing 73.82% of LOC.
  • " *.h" is smallest, containing 26.18% of LOC.


*.cpp11851 LOC (73%) 118 files
*.h4204 LOC (26%) 118 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
mk
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/pom[.]xml".
    • files with paths like ".*[.]mk".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 7 files match defined criteria (879 LOC, 0.7% vs. main code):
    • 4 *.xml files (619 LOC)
    • 1 *.mk files (146 LOC)
    • 2 *.sh files (114 LOC)
  • " *.xml" is biggest, containing 70.42% of LOC.
  • " *.sh" is smallest, containing 12.97% of LOC.


*.xml619 LOC (70%) 4 files
*.mk146 LOC (16%) 1 file
*.sh114 LOC (12%) 2 files
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
  • 54 files match defined criteria (5,077 LOC, 4.3% vs. main code):
    • 28 *.cpp files (2,633 LOC)
    • 7 *.txt files (1,745 LOC)
    • 19 *.h files (699 LOC)
  • " *.cpp" is biggest, containing 51.86% of LOC.
  • " *.h" is smallest, containing 13.77% of LOC.


*.cpp2633 LOC (51%) 28 files
*.txt1745 LOC (34%) 7 files
*.h699 LOC (13%) 19 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:21