apache / qpid-proton
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
in
i
mod
gitattributes
ini
cfg
rdoc
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.

main69094 LOC (68%) 450 files
test20565 LOC (20%) 112 files
generated0 LOC (0%) 0 files
build and deployment132 LOC (<1%) 6 files
other11453 LOC (11%) 135 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
i
in
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 450 files match defined criteria (69,094 LOC, 100.0% vs. main code):
    • 72 *.c files (31,039 LOC)
    • 69 *.cpp files (10,262 LOC)
    • 34 *.py files (6,662 LOC)
    • 80 *.h files (5,962 LOC)
    • 27 *.go files (4,889 LOC)
    • 52 *.rb files (4,145 LOC)
    • 84 *.hpp files (3,379 LOC)
    • 2 *.i files (1,343 LOC)
    • 5 *.xml files (477 LOC)
    • 9 *.cmake files (457 LOC)
    • 13 *.in files (407 LOC)
    • 1 *.toml files (55 LOC)
    • 1 *.inc files (15 LOC)
    • 1 *.cfg files (2 LOC)
  • " *.c" is biggest, containing 44.92% of LOC.
  • " *.cfg" is smallest, containing 0% of LOC.


*.c31039 LOC (44%) 72 files
*.cpp10262 LOC (14%) 69 files
*.py6662 LOC (9%) 34 files
*.h5962 LOC (8%) 80 files
*.go4889 LOC (7%) 27 files
*.rb4145 LOC (5%) 52 files
*.hpp3379 LOC (4%) 84 files
*.i1343 LOC (1%) 2 files
*.xml477 LOC (<1%) 5 files
*.cmake457 LOC (<1%) 9 files
*.in407 LOC (<1%) 13 files
*.toml55 LOC (<1%) 1 file
*.inc15 LOC (<1%) 1 file
*.cfg2 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/test[.].*".
  • 112 files match defined criteria (20,565 LOC, 29.8% vs. main code):
    • 37 *.cpp files (8,288 LOC)
    • 25 *.py files (7,278 LOC)
    • 13 *.go files (1,686 LOC)
    • 12 *.rb files (1,368 LOC)
    • 8 *.c files (983 LOC)
    • 6 *.hpp files (544 LOC)
    • 6 *.sh files (169 LOC)
    • 2 *.cmake files (165 LOC)
    • 2 *.h files (61 LOC)
    • 1 *.in files (23 LOC)
  • " *.cpp" is biggest, containing 40.3% of LOC.
  • " *.in" is smallest, containing 0.11% of LOC.


*.cpp8288 LOC (40%) 37 files
*.py7278 LOC (35%) 25 files
*.go1686 LOC (8%) 13 files
*.rb1368 LOC (6%) 12 files
*.c983 LOC (4%) 8 files
*.hpp544 LOC (2%) 6 files
*.sh169 LOC (<1%) 6 files
*.cmake165 LOC (<1%) 2 files
*.h61 LOC (<1%) 2 files
*.in23 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
  • 6 files match defined criteria (132 LOC, 0.2% vs. main code). All matches are in *.sh files.


*.sh132 LOC (100%) 6 files
Other Code
txt
rdoc
ini
mod
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*[.]ini".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*/INSTALL[.][a-z0-9]+".
  • 135 files match defined criteria (11,453 LOC, 16.6% vs. main code):
    • 30 *.txt files (2,970 LOC)
    • 27 *.cpp files (2,834 LOC)
    • 8 *.c files (1,811 LOC)
    • 32 *.py files (1,524 LOC)
    • 6 *.go files (890 LOC)
    • 13 *.md files (587 LOC)
    • 9 *.rb files (430 LOC)
    • 1 *.hpp files (125 LOC)
    • 4 *.json files (106 LOC)
    • 1 *.rdoc files (104 LOC)
    • 1 *.h files (40 LOC)
    • 1 *.ini files (22 LOC)
    • 1 *.rst files (8 LOC)
    • 1 *.mod files (2 LOC)
  • " *.txt" is biggest, containing 25.93% of LOC.
  • " *.mod" is smallest, containing 0.02% of LOC.


*.txt2970 LOC (25%) 30 files
*.cpp2834 LOC (24%) 27 files
*.c1811 LOC (15%) 8 files
*.py1524 LOC (13%) 32 files
*.go890 LOC (7%) 6 files
*.md587 LOC (5%) 13 files
*.rb430 LOC (3%) 9 files
*.hpp125 LOC (1%) 1 file
*.json106 LOC (<1%) 4 files
*.rdoc104 LOC (<1%) 1 file
*.h40 LOC (<1%) 1 file
*.ini22 LOC (<1%) 1 file
*.rst8 LOC (<1%) 1 file
*.mod2 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:44