apache / arrow-rs
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
in
gitattributes
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.

main172157 LOC (82%) 451 files
test13349 LOC (6%) 42 files
generated9782 LOC (4%) 6 files
build and deployment463 LOC (<1%) 10 files
other13442 LOC (6%) 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
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 451 files match defined criteria (172,157 LOC, 100.0% vs. main code):
    • 420 *.rs files (168,241 LOC)
    • 2 *.proto files (2,181 LOC)
    • 26 *.toml files (1,613 LOC)
    • 2 *.py files (102 LOC)
    • 1 *.in files (20 LOC)
  • " *.rs" is biggest, containing 97.73% of LOC.
  • " *.in" is smallest, containing 0.01% of LOC.


*.rs168241 LOC (97%) 420 files
*.proto2181 LOC (1%) 2 files
*.toml1613 LOC (<1%) 26 files
*.py102 LOC (<1%) 2 files
*.in20 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 ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/[Tt]est/.*".
  • 42 files match defined criteria (13,349 LOC, 7.8% vs. main code):
    • 40 *.rs files (12,846 LOC)
    • 2 *.py files (503 LOC)
  • " *.rs" is biggest, containing 96.23% of LOC.
  • " *.py" is smallest, containing 3.77% of LOC.


*.rs12846 LOC (96%) 40 files
*.py503 LOC (3%) 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 paths like ".*/src/gen/.*".
  • 6 files match defined criteria (9,782 LOC, 5.7% vs. main code). All matches are in *.rs files.


*.rs9782 LOC (100%) 6 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*/[.]gitattributes".
  • 10 files match defined criteria (463 LOC, 0.3% vs. main code). All matches are in *.sh files.


*.sh463 LOC (100%) 10 files
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*[.]json".
  • 88 files match defined criteria (13,442 LOC, 7.8% vs. main code):
    • 19 *.md files (6,062 LOC)
    • 42 *.txt files (4,758 LOC)
    • 16 *.rs files (1,734 LOC)
    • 9 *.json files (853 LOC)
    • 1 *.rst files (20 LOC)
    • 1 *.sh files (15 LOC)
  • " *.md" is biggest, containing 45.1% of LOC.
  • " *.sh" is smallest, containing 0.11% of LOC.


*.md6062 LOC (45%) 19 files
*.txt4758 LOC (35%) 42 files
*.rs1734 LOC (12%) 16 files
*.json853 LOC (6%) 9 files
*.rst20 LOC (<1%) 1 file
*.sh15 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 20:26