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.

main68075 LOC (68%) 451 files
test19575 LOC (19%) 109 files
generated0 LOC (0%) 0 files
build and deployment123 LOC (<1%) 5 files
other11078 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 ".*".
  • 451 files match defined criteria (68,075 LOC, 100.0% vs. main code):
    • 71 *.c files (30,311 LOC)
    • 69 *.cpp files (10,230 LOC)
    • 36 *.py files (6,772 LOC)
    • 79 *.h files (5,579 LOC)
    • 27 *.go files (4,880 LOC)
    • 52 *.rb files (4,140 LOC)
    • 84 *.hpp files (3,352 LOC)
    • 2 *.i files (1,342 LOC)
    • 5 *.xml files (477 LOC)
    • 9 *.cmake files (448 LOC)
    • 12 *.in files (372 LOC)
    • 2 *.yml files (77 LOC)
    • 1 *.toml files (43 LOC)
    • 1 *.cfg files (37 LOC)
    • 1 *.inc files (15 LOC)
  • " *.c" is biggest, containing 44.53% of LOC.
  • " *.inc" is smallest, containing 0.02% of LOC.


*.c30311 LOC (44%) 71 files
*.cpp10230 LOC (15%) 69 files
*.py6772 LOC (9%) 36 files
*.h5579 LOC (8%) 79 files
*.go4880 LOC (7%) 27 files
*.rb4140 LOC (6%) 52 files
*.hpp3352 LOC (4%) 84 files
*.i1342 LOC (1%) 2 files
*.xml477 LOC (<1%) 5 files
*.cmake448 LOC (<1%) 9 files
*.in372 LOC (<1%) 12 files
*.yml77 LOC (<1%) 2 files
*.toml43 LOC (<1%) 1 file
*.cfg37 LOC (<1%) 1 file
*.inc15 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 ".*_test[.].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
  • 109 files match defined criteria (19,575 LOC, 28.8% vs. main code):
    • 36 *.cpp files (7,674 LOC)
    • 25 *.py files (7,056 LOC)
    • 13 *.go files (1,672 LOC)
    • 12 *.rb files (1,368 LOC)
    • 8 *.c files (981 LOC)
    • 5 *.hpp files (457 LOC)
    • 2 *.cmake files (165 LOC)
    • 5 *.sh files (118 LOC)
    • 2 *.h files (61 LOC)
    • 1 *.in files (23 LOC)
  • " *.cpp" is biggest, containing 39.2% of LOC.
  • " *.in" is smallest, containing 0.12% of LOC.


*.cpp7674 LOC (39%) 36 files
*.py7056 LOC (36%) 25 files
*.go1672 LOC (8%) 13 files
*.rb1368 LOC (6%) 12 files
*.c981 LOC (5%) 8 files
*.hpp457 LOC (2%) 5 files
*.cmake165 LOC (<1%) 2 files
*.sh118 LOC (<1%) 5 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".
  • 5 files match defined criteria (123 LOC, 0.2% vs. main code). All matches are in *.sh files.


*.sh123 LOC (100%) 5 files
Other Code
txt
rdoc
ini
mod
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*[.]ini".
    • files with paths like ".*/INSTALL[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 135 files match defined criteria (11,078 LOC, 16.3% vs. main code):
    • 30 *.txt files (2,841 LOC)
    • 27 *.cpp files (2,810 LOC)
    • 8 *.c files (1,806 LOC)
    • 32 *.py files (1,318 LOC)
    • 6 *.go files (890 LOC)
    • 13 *.md files (581 LOC)
    • 9 *.rb files (430 LOC)
    • 1 *.hpp files (125 LOC)
    • 1 *.rdoc files (104 LOC)
    • 4 *.json files (101 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.65% of LOC.
  • " *.mod" is smallest, containing 0.02% of LOC.


*.txt2841 LOC (25%) 30 files
*.cpp2810 LOC (25%) 27 files
*.c1806 LOC (16%) 8 files
*.py1318 LOC (11%) 32 files
*.go890 LOC (8%) 6 files
*.md581 LOC (5%) 13 files
*.rb430 LOC (3%) 9 files
*.hpp125 LOC (1%) 1 file
*.rdoc104 LOC (<1%) 1 file
*.json101 LOC (<1%) 4 files
*.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.


2023-08-10 15:24