apache / cloudberry-devops-release
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
spec
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.

main762 LOC (40%) 7 files
test354 LOC (18%) 5 files
generated0 LOC (0%) 0 files
build and deployment709 LOC (37%) 12 files
other52 LOC (2%) 4 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
spec
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 7 files match defined criteria (762 LOC, 100.0% vs. main code):
    • 2 *.py files (402 LOC)
    • 4 *.spec files (249 LOC)
    • 1 *.pl files (111 LOC)
  • " *.py" is biggest, containing 52.76% of LOC.
  • " *.pl" is smallest, containing 14.57% of LOC.


*.py402 LOC (52%) 2 files
*.spec249 LOC (32%) 4 files
*.pl111 LOC (14%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
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 ".*/[Tt]est/.*".
  • 5 files match defined criteria (354 LOC, 46.5% vs. main code):
    • 3 *.sh files (227 LOC)
    • 2 *.py files (127 LOC)
  • " *.sh" is biggest, containing 64.12% of LOC.
  • " *.py" is smallest, containing 35.88% of LOC.


*.sh227 LOC (64%) 3 files
*.py127 LOC (35%) 2 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".
  • 12 files match defined criteria (709 LOC, 93.0% vs. main code). All matches are in *.sh files.


*.sh709 LOC (100%) 12 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".
  • 4 files match defined criteria (52 LOC, 6.8% vs. main code):
    • 2 *.md files (46 LOC)
    • 2 *.txt files (6 LOC)
  • " *.md" is biggest, containing 88.46% of LOC.
  • " *.txt" is smallest, containing 11.54% of LOC.


*.md46 LOC (88%) 2 files
*.txt6 LOC (11%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 21:02