apache / incubator-resilientdb
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
proto
pri
pub
clang-format
txt
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.

main15463 LOC (61%) 258 files
test5574 LOC (22%) 62 files
generated11 LOC (<1%) 1 file
build and deployment588 LOC (2%) 30 files
other3628 LOC (14%) 15 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
pub
pri
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 258 files match defined criteria (15,463 LOC, 100.0% vs. main code):
    • 91 *.cpp files (10,531 LOC)
    • 100 *.h files (3,334 LOC)
    • 20 *.proto files (896 LOC)
    • 1 *.xml files (226 LOC)
    • 7 *.py files (218 LOC)
    • 9 *.js files (137 LOC)
    • 1 *.bzl files (85 LOC)
    • 14 *.pub files (17 LOC)
    • 14 *.pri files (15 LOC)
    • 1 *.css files (4 LOC)
  • " *.cpp" is biggest, containing 68.1% of LOC.
  • " *.css" is smallest, containing 0.03% of LOC.


*.cpp10531 LOC (68%) 91 files
*.h3334 LOC (21%) 100 files
*.proto896 LOC (5%) 20 files
*.xml226 LOC (1%) 1 file
*.py218 LOC (1%) 7 files
*.js137 LOC (<1%) 9 files
*.bzl85 LOC (<1%) 1 file
*.pub17 LOC (<1%) 14 files
*.pri15 LOC (<1%) 14 files
*.css4 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
proto
pub
pri
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 ".*/test_.*".
    • files with paths like ".*/test[.].*".
  • 62 files match defined criteria (5,574 LOC, 36.0% vs. main code):
    • 45 *.cpp files (5,448 LOC)
    • 3 *.proto files (80 LOC)
    • 1 *.h files (23 LOC)
    • 6 *.pub files (9 LOC)
    • 6 *.pri files (7 LOC)
    • 1 *.py files (7 LOC)
  • " *.cpp" is biggest, containing 97.74% of LOC.
  • " *.py" is smallest, containing 0.13% of LOC.


*.cpp5448 LOC (97%) 45 files
*.proto80 LOC (1%) 3 files
*.h23 LOC (<1%) 1 file
*.pub9 LOC (<1%) 6 files
*.pri7 LOC (<1%) 6 files
*.py7 LOC (<1%) 1 file
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 ".*/package[-]lock[.]json".
  • 1 file matches defined criteria (11 LOC, 0.1% vs. main code). All matches are in *.json files.


*.json11 LOC (100%) 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 ".*/package[-]lock[.]json".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 30 files match defined criteria (588 LOC, 3.8% vs. main code). All matches are in *.sh files.


*.sh588 LOC (100%) 30 files
Other Code
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 ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/INSTALL[.][a-z0-9]+".
  • 15 files match defined criteria (3,628 LOC, 23.5% vs. main code):
    • 2 *.json files (2,904 LOC)
    • 12 *.md files (692 LOC)
    • 1 *.sh files (32 LOC)
  • " *.json" is biggest, containing 80.04% of LOC.
  • " *.sh" is smallest, containing 0.88% of LOC.


*.json2904 LOC (80%) 2 files
*.md692 LOC (19%) 12 files
*.sh32 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 20:03