apache / calcite-avatica
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
properties
proto
txt
gitattributes
editorconfig
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.

main29236 LOC (56%) 238 files
test15959 LOC (30%) 110 files
generated10 LOC (<1%) 1 file
build and deployment304 LOC (<1%) 6 files
other6334 LOC (12%) 59 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 ".*".
  • 238 files match defined criteria (29,236 LOC, 100.0% vs. main code):
    • 186 *.java files (25,848 LOC)
    • 6 *.scss files (1,092 LOC)
    • 12 *.kts files (1,077 LOC)
    • 3 *.proto files (520 LOC)
    • 23 *.html files (508 LOC)
    • 6 *.xml files (147 LOC)
    • 1 *.rdf files (41 LOC)
    • 1 *.rb files (3 LOC)
  • " *.java" is biggest, containing 88.41% of LOC.
  • " *.rb" is smallest, containing 0.01% of LOC.


*.java25848 LOC (88%) 186 files
*.scss1092 LOC (3%) 6 files
*.kts1077 LOC (3%) 12 files
*.proto520 LOC (1%) 3 files
*.html508 LOC (1%) 23 files
*.xml147 LOC (<1%) 6 files
*.rdf41 LOC (<1%) 1 file
*.rb3 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]est/.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
  • 110 files match defined criteria (15,959 LOC, 54.6% vs. main code):
    • 108 *.java files (15,877 LOC)
    • 1 *.rb files (68 LOC)
    • 1 *.xml files (14 LOC)
  • " *.java" is biggest, containing 99.49% of LOC.
  • " *.xml" is smallest, containing 0.09% of LOC.


*.java15877 LOC (99%) 108 files
*.rb68 LOC (<1%) 1 file
*.xml14 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 ".*[.](html|html|xhtml)" AND any line of content like "[ ]*[<]meta name[=]"generator" .*".
  • 1 file matches defined criteria (10 LOC, 0.0% vs. main code). All matches are in *.html files.


*.html10 LOC (100%) 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 ".*/[.]gitattributes".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]bat".
  • 6 files match defined criteria (304 LOC, 1.0% vs. main code):
    • 5 *.sh files (233 LOC)
    • 1 *.bat files (71 LOC)
  • " *.sh" is biggest, containing 76.64% of LOC.
  • " *.bat" is smallest, containing 23.36% of LOC.


*.sh233 LOC (76%) 5 files
*.bat71 LOC (23%) 1 file
Other Code
properties
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/config/checkstyle/.*".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]editorconfig".
  • 59 files match defined criteria (6,334 LOC, 21.7% vs. main code):
    • 45 *.md files (5,898 LOC)
    • 11 *.properties files (258 LOC)
    • 2 *.xml files (145 LOC)
    • 1 *.txt files (33 LOC)
  • " *.md" is biggest, containing 93.12% of LOC.
  • " *.txt" is smallest, containing 0.52% of LOC.


*.md5898 LOC (93%) 45 files
*.properties258 LOC (4%) 11 files
*.xml145 LOC (2%) 2 files
*.txt33 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 16:54