apache / qpid-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
in
txt
feature
x
i
t
el
wxs
rdoc
xsl
proj
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.

main143748 LOC (73%) 1,320 files
test39643 LOC (20%) 223 files
generated0 LOC (0%) 0 files
build and deployment68 LOC (<1%) 2 files
other10835 LOC (5%) 127 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
in
i
t
wxs
el
proj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1320 files match defined criteria (143,748 LOC, 100.0% vs. main code):
    • 494 *.cpp files (88,827 LOC)
    • 685 *.h files (33,309 LOC)
    • 21 *.py files (8,232 LOC)
    • 39 *.rb files (3,612 LOC)
    • 20 *.in files (2,964 LOC)
    • 8 *.i files (1,798 LOC)
    • 16 *.cmake files (1,304 LOC)
    • 2 *.ps1 files (1,077 LOC)
    • 11 *.pm files (735 LOC)
    • 7 *.xml files (671 LOC)
    • 3 *.t files (259 LOC)
    • 1 *.wxs files (197 LOC)
    • 1 *.el files (196 LOC)
    • 6 *.c files (192 LOC)
    • 1 *.proj files (172 LOC)
    • 1 *.html files (87 LOC)
    • 2 *.cs files (80 LOC)
    • 1 *.gemspec files (23 LOC)
    • 1 *.yml files (13 LOC)
  • " *.cpp" is biggest, containing 61.79% of LOC.
  • " *.yml" is smallest, containing 0.01% of LOC.


*.cpp88827 LOC (61%) 494 files
*.h33309 LOC (23%) 685 files
*.py8232 LOC (5%) 21 files
*.rb3612 LOC (2%) 39 files
*.in2964 LOC (2%) 20 files
*.i1798 LOC (1%) 8 files
*.cmake1304 LOC (<1%) 16 files
*.ps11077 LOC (<1%) 2 files
*.pm735 LOC (<1%) 11 files
*.xml671 LOC (<1%) 7 files
*.t259 LOC (<1%) 3 files
*.wxs197 LOC (<1%) 1 file
*.el196 LOC (<1%) 1 file
*.c192 LOC (<1%) 6 files
*.proj172 LOC (<1%) 1 file
*.html87 LOC (<1%) 1 file
*.cs80 LOC (<1%) 2 files
*.gemspec23 LOC (<1%) 1 file
*.yml13 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
in
feature
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Ss]pecs/.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[.][Tt]est/.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*[.]feature".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*[-]test[-].*".
  • 223 files match defined criteria (39,643 LOC, 27.6% vs. main code):
    • 128 *.cpp files (21,332 LOC)
    • 35 *.py files (12,713 LOC)
    • 24 *.h files (2,195 LOC)
    • 2 *.xml files (1,178 LOC)
    • 6 *.in files (622 LOC)
    • 6 *.cs files (578 LOC)
    • 6 *.sh files (431 LOC)
    • 11 *.feature files (330 LOC)
    • 4 *.ps1 files (262 LOC)
    • 1 *.c files (2 LOC)
  • " *.cpp" is biggest, containing 53.81% of LOC.
  • " *.c" is smallest, containing 0.01% of LOC.


*.cpp21332 LOC (53%) 128 files
*.py12713 LOC (32%) 35 files
*.h2195 LOC (5%) 24 files
*.xml1178 LOC (2%) 2 files
*.in622 LOC (1%) 6 files
*.cs578 LOC (1%) 6 files
*.sh431 LOC (1%) 6 files
*.feature330 LOC (<1%) 11 files
*.ps1262 LOC (<1%) 4 files
*.c2 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 ".*[.]bat".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 2 files match defined criteria (68 LOC, 0.0% vs. main code):
    • 1 *.bat files (48 LOC)
    • 1 *.sh files (20 LOC)
  • " *.bat" is biggest, containing 70.59% of LOC.
  • " *.sh" is smallest, containing 29.41% of LOC.


*.bat48 LOC (70%) 1 file
*.sh20 LOC (29%) 1 file
Other Code
txt
in
rdoc
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/INSTALL[.][a-z0-9]+".
    • files with paths like ".*/[Mm]an/.*".
    • files with paths like ".*[.]md".
    • files with paths like ".*/[Ee]xamples/.*".
  • 127 files match defined criteria (10,835 LOC, 7.5% vs. main code):
    • 36 *.txt files (4,546 LOC)
    • 34 *.in files (3,402 LOC)
    • 26 *.cs files (1,232 LOC)
    • 10 *.cpp files (776 LOC)
    • 8 *.pl files (360 LOC)
    • 7 *.rb files (300 LOC)
    • 1 *.py files (94 LOC)
    • 2 *.md files (70 LOC)
    • 2 *.h files (32 LOC)
    • 1 *.rdoc files (23 LOC)
  • " *.txt" is biggest, containing 41.96% of LOC.
  • " *.rdoc" is smallest, containing 0.21% of LOC.


*.txt4546 LOC (41%) 36 files
*.in3402 LOC (31%) 34 files
*.cs1232 LOC (11%) 26 files
*.cpp776 LOC (7%) 10 files
*.pl360 LOC (3%) 8 files
*.rb300 LOC (2%) 7 files
*.py94 LOC (<1%) 1 file
*.md70 LOC (<1%) 2 files
*.h32 LOC (<1%) 2 files
*.rdoc23 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 16:59