apache / arrow-datafusion
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
gitattributes
editorconfig
cfg
proto
gitmodules
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.

main162237 LOC (79%) 458 files
test28003 LOC (13%) 176 files
generated3128 LOC (1%) 3 files
build and deployment718 LOC (<1%) 16 files
other9446 LOC (4%) 88 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 458 files match defined criteria (162,237 LOC, 100.0% vs. main code):
    • 408 *.rs files (158,846 LOC)
    • 1 *.proto files (1,310 LOC)
    • 17 *.toml files (883 LOC)
    • 23 *.sql files (646 LOC)
    • 9 *.py files (552 LOC)
  • " *.rs" is biggest, containing 97.91% of LOC.
  • " *.py" is smallest, containing 0.34% of LOC.


*.rs158846 LOC (97%) 408 files
*.proto1310 LOC (<1%) 1 file
*.toml883 LOC (<1%) 17 files
*.sql646 LOC (<1%) 23 files
*.py552 LOC (<1%) 9 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]ests/.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/test_.*".
  • 176 files match defined criteria (28,003 LOC, 17.3% vs. main code):
    • 77 *.rs files (23,434 LOC)
    • 99 *.sql files (4,569 LOC)
  • " *.rs" is biggest, containing 83.68% of LOC.
  • " *.sql" is smallest, containing 16.32% of LOC.


*.rs23434 LOC (83%) 77 files
*.sql4569 LOC (16%) 99 files
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 ".*/generated/.*".
    • files with any line of content like "\<\!\-\-[ ]*Generated by .*".
  • 3 files match defined criteria (3,128 LOC, 1.9% vs. main code):
    • 2 *.rs files (2,947 LOC)
    • 1 *.svg files (181 LOC)
  • " *.rs" is biggest, containing 94.21% of LOC.
  • " *.svg" is smallest, containing 5.79% of LOC.


*.rs2947 LOC (94%) 2 files
*.svg181 LOC (5%) 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 ".*[.]bat".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*/[.]gitattributes".
  • 16 files match defined criteria (718 LOC, 0.4% vs. main code). All matches are in *.sh files.


*.sh718 LOC (100%) 16 files
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 88 files match defined criteria (9,446 LOC, 5.8% vs. main code):
    • 46 *.md files (6,632 LOC)
    • 28 *.rs files (2,223 LOC)
    • 7 *.txt files (377 LOC)
    • 1 *.svg files (181 LOC)
    • 6 *.json files (33 LOC)
  • " *.md" is biggest, containing 70.21% of LOC.
  • " *.json" is smallest, containing 0.35% of LOC.


*.md6632 LOC (70%) 46 files
*.rs2223 LOC (23%) 28 files
*.txt377 LOC (3%) 7 files
*.svg181 LOC (1%) 1 file
*.json33 LOC (<1%) 6 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-11 02:12