apache / datasketches-postgresql
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
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.

main8606 LOC (93%) 49 files
test182 LOC (1%) 9 files
generated0 LOC (0%) 0 files
build and deployment29 LOC (<1%) 1 file
other414 LOC (4%) 2 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 49 files match defined criteria (8,606 LOC, 100.0% vs. main code):
    • 14 *.sql files (3,528 LOC)
    • 12 *.c files (3,224 LOC)
    • 9 *.cpp files (1,506 LOC)
    • 14 *.h files (348 LOC)
  • " *.sql" is biggest, containing 40.99% of LOC.
  • " *.h" is smallest, containing 4.04% of LOC.


*.sql3528 LOC (40%) 14 files
*.c3224 LOC (37%) 12 files
*.cpp1506 LOC (17%) 9 files
*.h348 LOC (4%) 14 files
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 ".*/[Tt]est/.*".
    • files with paths like ".*_test[.].*".
  • 9 files match defined criteria (182 LOC, 2.1% vs. main code). All matches are in *.sql files.


*.sql182 LOC (100%) 9 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 1 file matches defined criteria (29 LOC, 0.3% vs. main code). All matches are in *.sh files.


*.sh29 LOC (100%) 1 file
Other Code
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
  • 2 files match defined criteria (414 LOC, 4.8% vs. main code):
    • 1 *.md files (343 LOC)
    • 1 *.json files (71 LOC)
  • " *.md" is biggest, containing 82.85% of LOC.
  • " *.json" is smallest, containing 17.15% of LOC.


*.md343 LOC (82%) 1 file
*.json71 LOC (17%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 21:31