apache / datafusion-ballista
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
proto
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.

main22990 LOC (71%) 126 files
test2050 LOC (6%) 9 files
generated2807 LOC (8%) 3 files
build and deployment425 LOC (1%) 22 files
other3771 LOC (11%) 40 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 ".*".
  • 126 files match defined criteria (22,990 LOC, 100.0% vs. main code):
    • 75 *.rs files (18,381 LOC)
    • 4 *.proto files (2,211 LOC)
    • 13 *.toml files (809 LOC)
    • 11 *.py files (735 LOC)
    • 22 *.sql files (632 LOC)
    • 1 *.scala files (222 LOC)
  • " *.rs" is biggest, containing 79.95% of LOC.
  • " *.scala" is smallest, containing 0.97% of LOC.


*.rs18381 LOC (79%) 75 files
*.proto2211 LOC (9%) 4 files
*.toml809 LOC (3%) 13 files
*.py735 LOC (3%) 11 files
*.sql632 LOC (2%) 22 files
*.scala222 LOC (<1%) 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/.*".
  • 9 files match defined criteria (2,050 LOC, 8.9% vs. main code):
    • 7 *.rs files (1,998 LOC)
    • 2 *.py files (52 LOC)
  • " *.rs" is biggest, containing 97.46% of LOC.
  • " *.py" is smallest, containing 2.54% of LOC.


*.rs1998 LOC (97%) 7 files
*.py52 LOC (2%) 2 files
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with any line of content like "\<\!\-\-[ ]*Generated by .*".
    • files with paths like ".*/generated/.*".
  • 3 files match defined criteria (2,807 LOC, 12.2% vs. main code):
    • 2 *.rs files (2,728 LOC)
    • 1 *.svg files (79 LOC)
  • " *.rs" is biggest, containing 97.19% of LOC.
  • " *.svg" is smallest, containing 2.81% of LOC.


*.rs2728 LOC (97%) 2 files
*.svg79 LOC (2%) 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 ".*/pom[.]xml".
    • files with paths like ".*[.]bat".
  • 22 files match defined criteria (425 LOC, 1.8% vs. main code):
    • 21 *.sh files (346 LOC)
    • 1 *.xml files (79 LOC)
  • " *.sh" is biggest, containing 81.41% of LOC.
  • " *.xml" is smallest, containing 18.59% of LOC.


*.sh346 LOC (81%) 21 files
*.xml79 LOC (18%) 1 file
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
  • 40 files match defined criteria (3,771 LOC, 16.4% vs. main code):
    • 16 *.md files (2,390 LOC)
    • 10 *.rs files (709 LOC)
    • 5 *.txt files (465 LOC)
    • 1 *.svg files (79 LOC)
    • 2 *.toml files (77 LOC)
    • 6 *.py files (51 LOC)
  • " *.md" is biggest, containing 63.38% of LOC.
  • " *.py" is smallest, containing 1.35% of LOC.


*.md2390 LOC (63%) 16 files
*.rs709 LOC (18%) 10 files
*.txt465 LOC (12%) 5 files
*.svg79 LOC (2%) 1 file
*.toml77 LOC (2%) 2 files
*.py51 LOC (1%) 6 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 20:38