apache / arrow-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
gitattributes
patch
tpl
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.

main26556 LOC (72%) 170 files
test746 LOC (2%) 18 files
generated3043 LOC (8%) 3 files
build and deployment1970 LOC (5%) 72 files
other4339 LOC (11%) 33 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
tpl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 170 files match defined criteria (26,556 LOC, 100.0% vs. main code):
    • 84 *.rs files (20,651 LOC)
    • 3 *.proto files (1,808 LOC)
    • 10 *.py files (881 LOC)
    • 10 *.tsx files (784 LOC)
    • 10 *.toml files (746 LOC)
    • 22 *.sql files (627 LOC)
    • 7 *.yaml files (423 LOC)
    • 1 *.scala files (222 LOC)
    • 8 *.cmake files (178 LOC)
    • 8 *.yml files (84 LOC)
    • 1 *.tpl files (70 LOC)
    • 1 *.xml files (36 LOC)
    • 1 *.html files (20 LOC)
    • 2 *.ts files (14 LOC)
    • 2 *.css files (12 LOC)
  • " *.rs" is biggest, containing 77.76% of LOC.
  • " *.css" is smallest, containing 0.05% of LOC.


*.rs20651 LOC (77%) 84 files
*.proto1808 LOC (6%) 3 files
*.py881 LOC (3%) 10 files
*.tsx784 LOC (2%) 10 files
*.toml746 LOC (2%) 10 files
*.sql627 LOC (2%) 22 files
*.yaml423 LOC (1%) 7 files
*.scala222 LOC (<1%) 1 file
*.cmake178 LOC (<1%) 8 files
*.yml84 LOC (<1%) 8 files
*.tpl70 LOC (<1%) 1 file
*.xml36 LOC (<1%) 1 file
*.html20 LOC (<1%) 1 file
*.ts14 LOC (<1%) 2 files
*.css12 LOC (<1%) 2 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[.].*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/[Tt]ests/.*".
  • 18 files match defined criteria (746 LOC, 2.8% vs. main code):
    • 2 *.rs files (360 LOC)
    • 13 *.sh files (302 LOC)
    • 1 *.bat files (47 LOC)
    • 1 *.yaml files (31 LOC)
    • 1 *.tsx files (6 LOC)
  • " *.rs" is biggest, containing 48.26% of LOC.
  • " *.tsx" is smallest, containing 0.8% of LOC.


*.rs360 LOC (48%) 2 files
*.sh302 LOC (40%) 13 files
*.bat47 LOC (6%) 1 file
*.yaml31 LOC (4%) 1 file
*.tsx6 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 ".*/generated/.*".
    • files with any line of content like "\<\!\-\-[ ]*Generated by .*".
  • 3 files match defined criteria (3,043 LOC, 11.5% vs. main code):
    • 2 *.rs files (2,964 LOC)
    • 1 *.svg files (79 LOC)
  • " *.rs" is biggest, containing 97.4% of LOC.
  • " *.svg" is smallest, containing 2.6% of LOC.


*.rs2964 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/pom[.]xml".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*/docker[-]compose[.]yml".
  • 72 files match defined criteria (1,970 LOC, 7.4% vs. main code):
    • 67 *.sh files (1,504 LOC)
    • 3 *.bat files (325 LOC)
    • 1 *.xml files (79 LOC)
    • 1 *.yml files (62 LOC)
  • " *.sh" is biggest, containing 76.35% of LOC.
  • " *.yml" is smallest, containing 3.15% of LOC.


*.sh1504 LOC (76%) 67 files
*.bat325 LOC (16%) 3 files
*.xml79 LOC (4%) 1 file
*.yml62 LOC (3%) 1 file
Other Code
txt
patch
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]json".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]patch".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 33 files match defined criteria (4,339 LOC, 16.3% vs. main code):
    • 17 *.md files (2,047 LOC)
    • 6 *.txt files (1,914 LOC)
    • 3 *.json files (113 LOC)
    • 1 *.svg files (79 LOC)
    • 2 *.toml files (67 LOC)
    • 1 *.patch files (61 LOC)
    • 3 *.rs files (58 LOC)
  • " *.md" is biggest, containing 47.18% of LOC.
  • " *.rs" is smallest, containing 1.34% of LOC.


*.md2047 LOC (47%) 17 files
*.txt1914 LOC (44%) 6 files
*.json113 LOC (2%) 3 files
*.svg79 LOC (1%) 1 file
*.toml67 LOC (1%) 2 files
*.patch61 LOC (1%) 1 file
*.rs58 LOC (1%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-11 02:31