apache / arrow-go
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
s
txt
editorconfig
mod
sed
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.

main183758 LOC (69%) 649 files
test71133 LOC (26%) 187 files
generated7611 LOC (2%) 4 files
build and deployment611 LOC (<1%) 11 files
other985 LOC (<1%) 14 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
s
proto
sed
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 649 files match defined criteria (183,758 LOC, 100.0% vs. main code):
    • 548 *.go files (109,353 LOC)
    • 65 *.s files (68,017 LOC)
    • 15 *.c files (4,720 LOC)
    • 12 *.h files (744 LOC)
    • 4 *.cc files (725 LOC)
    • 1 *.proto files (92 LOC)
    • 1 *.yaml files (48 LOC)
    • 1 *.py files (33 LOC)
    • 1 *.toml files (21 LOC)
    • 1 *.sed files (5 LOC)
  • " *.go" is biggest, containing 59.51% of LOC.
  • " *.sed" is smallest, containing 0% of LOC.


*.go109353 LOC (59%) 548 files
*.s68017 LOC (37%) 65 files
*.c4720 LOC (2%) 15 files
*.h744 LOC (<1%) 12 files
*.cc725 LOC (<1%) 4 files
*.proto92 LOC (<1%) 1 file
*.yaml48 LOC (<1%) 1 file
*.py33 LOC (<1%) 1 file
*.toml21 LOC (<1%) 1 file
*.sed5 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]est/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/test[.].*".
  • 187 files match defined criteria (71,133 LOC, 38.7% vs. main code):
    • 184 *.go files (70,916 LOC)
    • 1 *.py files (157 LOC)
    • 2 *.sh files (60 LOC)
  • " *.go" is biggest, containing 99.69% of LOC.
  • " *.sh" is smallest, containing 0.08% of LOC.


*.go70916 LOC (99%) 184 files
*.py157 LOC (<1%) 1 file
*.sh60 LOC (<1%) 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 ".*/gen/.*[.]go".
  • 4 files match defined criteria (7,611 LOC, 4.1% vs. main code). All matches are in *.go files.


*.go7611 LOC (100%) 4 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 ".*[.]dockerfile".
    • files with paths like ".*/[.]gitmodules".
  • 11 files match defined criteria (611 LOC, 0.3% vs. main code):
    • 8 *.sh files (525 LOC)
    • 3 *.dockerfile files (86 LOC)
  • " *.sh" is biggest, containing 85.92% of LOC.
  • " *.dockerfile" is smallest, containing 14.08% of LOC.


*.sh525 LOC (85%) 8 files
*.dockerfile86 LOC (14%) 3 files
Other Code
txt
mod
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 14 files match defined criteria (985 LOC, 0.5% vs. main code):
    • 7 *.md files (590 LOC)
    • 5 *.txt files (283 LOC)
    • 1 *.mod files (97 LOC)
    • 1 *.json files (15 LOC)
  • " *.md" is biggest, containing 59.9% of LOC.
  • " *.json" is smallest, containing 1.52% of LOC.


*.md590 LOC (59%) 7 files
*.txt283 LOC (28%) 5 files
*.mod97 LOC (9%) 1 file
*.json15 LOC (1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 21:02