apache / arrow-adbc
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
rd
in
rmd
csproj
patch
gitattributes
pyi
mod
editorconfig
clang-format
props
gitmodules
clang-tidy
cfg
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.

main37506 LOC (60%) 249 files
test8735 LOC (14%) 95 files
generated140 LOC (<1%) 1 file
build and deployment3709 LOC (6%) 68 files
other11579 LOC (18%) 73 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
in
tpl
pyi
props
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 249 files match defined criteria (37,506 LOC, 100.0% vs. main code):
    • 26 *.go files (7,812 LOC)
    • 10 *.cc files (6,178 LOC)
    • 21 *.c files (5,113 LOC)
    • 48 *.java files (4,560 LOC)
    • 29 *.h files (3,831 LOC)
    • 29 *.cs files (2,508 LOC)
    • 29 *.py files (2,159 LOC)
    • 10 *.cmake files (1,591 LOC)
    • 19 *.in files (801 LOC)
    • 1 *.pyx files (767 LOC)
    • 4 *.rs files (689 LOC)
    • 4 *.ps1 files (307 LOC)
    • 1 *.tpl files (266 LOC)
    • 6 *.toml files (247 LOC)
    • 7 *.rb files (244 LOC)
    • 1 *.yaml files (222 LOC)
    • 1 *.pyi files (127 LOC)
    • 1 *.gemspec files (37 LOC)
    • 1 *.props files (33 LOC)
    • 1 *.yml files (14 LOC)
  • " *.go" is biggest, containing 20.83% of LOC.
  • " *.yml" is smallest, containing 0.04% of LOC.


*.go7812 LOC (20%) 26 files
*.cc6178 LOC (16%) 10 files
*.c5113 LOC (13%) 21 files
*.java4560 LOC (12%) 48 files
*.h3831 LOC (10%) 29 files
*.cs2508 LOC (6%) 29 files
*.py2159 LOC (5%) 29 files
*.cmake1591 LOC (4%) 10 files
*.in801 LOC (2%) 19 files
*.pyx767 LOC (2%) 1 file
*.rs689 LOC (1%) 4 files
*.ps1307 LOC (<1%) 4 files
*.tpl266 LOC (<1%) 1 file
*.toml247 LOC (<1%) 6 files
*.rb244 LOC (<1%) 7 files
*.yaml222 LOC (<1%) 1 file
*.pyi127 LOC (<1%) 1 file
*.gemspec37 LOC (<1%) 1 file
*.props33 LOC (<1%) 1 file
*.yml14 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
csproj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[.][Tt]ests/.*".
    • files with paths like ".*[.][Tt]ests[.].*".
  • 95 files match defined criteria (8,735 LOC, 23.3% vs. main code):
    • 10 *.cc files (2,913 LOC)
    • 8 *.go files (2,403 LOC)
    • 21 *.py files (1,035 LOC)
    • 11 *.rb files (863 LOC)
    • 20 *.java files (628 LOC)
    • 9 *.sh files (310 LOC)
    • 8 *.cs files (263 LOC)
    • 3 *.ps1 files (146 LOC)
    • 2 *.sql files (96 LOC)
    • 2 *.csproj files (46 LOC)
    • 1 *.bat files (32 LOC)
  • " *.cc" is biggest, containing 33.35% of LOC.
  • " *.bat" is smallest, containing 0.37% of LOC.


*.cc2913 LOC (33%) 10 files
*.go2403 LOC (27%) 8 files
*.py1035 LOC (11%) 21 files
*.rb863 LOC (9%) 11 files
*.java628 LOC (7%) 20 files
*.sh310 LOC (3%) 9 files
*.cs263 LOC (3%) 8 files
*.ps1146 LOC (1%) 3 files
*.sql96 LOC (1%) 2 files
*.csproj46 LOC (<1%) 2 files
*.bat32 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 ".*/gen/.*[.]go".
  • 1 file matches defined criteria (140 LOC, 0.4% vs. main code). All matches are in *.go files.


*.go140 LOC (100%) 1 file
Build and Deployment Code
Source code used to configure or support build and deployment process.
csproj
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 ".*[.]dockerfile".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/pom[.]xml".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*[.]csproj".
    • files with paths like ".*/docker[-]compose[.]yml".
  • 68 files match defined criteria (3,709 LOC, 9.9% vs. main code):
    • 48 *.sh files (2,625 LOC)
    • 11 *.xml files (716 LOC)
    • 3 *.bat files (158 LOC)
    • 1 *.yml files (118 LOC)
    • 3 *.dockerfile files (68 LOC)
    • 2 *.csproj files (24 LOC)
  • " *.sh" is biggest, containing 70.77% of LOC.
  • " *.csproj" is smallest, containing 0.65% of LOC.


*.sh2625 LOC (70%) 48 files
*.xml716 LOC (19%) 11 files
*.bat158 LOC (4%) 3 files
*.yml118 LOC (3%) 1 file
*.dockerfile68 LOC (1%) 3 files
*.csproj24 LOC (<1%) 2 files
Other Code
txt
mod
patch
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]patch".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*[.]editorconfig".
  • 73 files match defined criteria (11,579 LOC, 30.9% vs. main code):
    • 33 *.txt files (8,824 LOC)
    • 31 *.md files (2,331 LOC)
    • 6 *.json files (240 LOC)
    • 1 *.mod files (101 LOC)
    • 2 *.patch files (83 LOC)
  • " *.txt" is biggest, containing 76.21% of LOC.
  • " *.patch" is smallest, containing 0.72% of LOC.


*.txt8824 LOC (76%) 33 files
*.md2331 LOC (20%) 31 files
*.json240 LOC (2%) 6 files
*.mod101 LOC (<1%) 1 file
*.patch83 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-11 02:32