apache / qpid-dispatch
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
pyi
clang-format
prettierignore
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.

main58793 LOC (48%) 320 files
test58500 LOC (48%) 182 files
generated0 LOC (0%) 0 files
build and deployment167 LOC (<1%) 3 files
other3785 LOC (3%) 43 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
in
pyi
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 320 files match defined criteria (58,793 LOC, 100.0% vs. main code):
    • 90 *.c files (31,734 LOC)
    • 92 *.js files (12,124 LOC)
    • 42 *.py files (7,515 LOC)
    • 81 *.h files (4,509 LOC)
    • 2 *.css files (2,263 LOC)
    • 7 *.in files (320 LOC)
    • 4 *.cmake files (280 LOC)
    • 1 *.pyi files (33 LOC)
    • 1 *.html files (15 LOC)
  • " *.c" is biggest, containing 53.98% of LOC.
  • " *.html" is smallest, containing 0.03% of LOC.


*.c31734 LOC (53%) 90 files
*.js12124 LOC (20%) 92 files
*.py7515 LOC (12%) 42 files
*.h4509 LOC (7%) 81 files
*.css2263 LOC (3%) 2 files
*.in320 LOC (<1%) 7 files
*.cmake280 LOC (<1%) 4 files
*.pyi33 LOC (<1%) 1 file
*.html15 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]ests/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
  • 182 files match defined criteria (58,500 LOC, 99.5% vs. main code):
    • 76 *.py files (34,060 LOC)
    • 22 *.c files (7,346 LOC)
    • 5 *.h files (6,133 LOC)
    • 40 *.js files (5,149 LOC)
    • 10 *.hpp files (4,326 LOC)
    • 8 *.in files (807 LOC)
    • 16 *.cpp files (592 LOC)
    • 5 *.sh files (87 LOC)
  • " *.py" is biggest, containing 58.22% of LOC.
  • " *.sh" is smallest, containing 0.15% of LOC.


*.py34060 LOC (58%) 76 files
*.c7346 LOC (12%) 22 files
*.h6133 LOC (10%) 5 files
*.js5149 LOC (8%) 40 files
*.hpp4326 LOC (7%) 10 files
*.in807 LOC (1%) 8 files
*.cpp592 LOC (1%) 16 files
*.sh87 LOC (<1%) 5 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 ".*[.]sh".
    • files with paths like ".*/pom[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[.]json".
  • 3 files match defined criteria (167 LOC, 0.3% vs. main code):
    • 1 *.xml files (110 LOC)
    • 2 *.sh files (57 LOC)
  • " *.xml" is biggest, containing 65.87% of LOC.
  • " *.sh" is smallest, containing 34.13% of LOC.


*.xml110 LOC (65%) 1 file
*.sh57 LOC (34%) 2 files
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[Mm]an/.*".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]prettierignore".
    • files with paths like ".*[.]svg".
  • 43 files match defined criteria (3,785 LOC, 6.4% vs. main code):
    • 17 *.json files (2,024 LOC)
    • 20 *.txt files (1,085 LOC)
    • 4 *.md files (431 LOC)
    • 1 *.adoc files (212 LOC)
    • 1 *.svg files (33 LOC)
  • " *.json" is biggest, containing 53.47% of LOC.
  • " *.svg" is smallest, containing 0.87% of LOC.


*.json2024 LOC (53%) 17 files
*.txt1085 LOC (28%) 20 files
*.md431 LOC (11%) 4 files
*.adoc212 LOC (5%) 1 file
*.svg33 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 14:56