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.

main28998 LOC (56%) 240 files
test15567 LOC (30%) 108 files
generated11 LOC (<1%) 1 file
build and deployment398 LOC (<1%) 10 files
other6061 LOC (11%) 56 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 ".*".
  • 240 files match defined criteria (28,998 LOC, 100.0% vs. main code):
    • 185 *.java files (25,580 LOC)
    • 12 *.kts files (1,050 LOC)
    • 5 *.scss files (992 LOC)
    • 3 *.proto files (520 LOC)
    • 23 *.html files (508 LOC)
    • 4 *.yml files (157 LOC)
    • 6 *.xml files (147 LOC)
    • 1 *.rdf files (41 LOC)
    • 1 *.rb files (3 LOC)
  • " *.java" is biggest, containing 88.21% of LOC.
  • " *.rb" is smallest, containing 0.01% of LOC.


*.java25580 LOC (88%) 185 files
*.kts1050 LOC (3%) 12 files
*.scss992 LOC (3%) 5 files
*.proto520 LOC (1%) 3 files
*.html508 LOC (1%) 23 files
*.yml157 LOC (<1%) 4 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_.*".
  • 108 files match defined criteria (15,567 LOC, 53.7% vs. main code):
    • 106 *.java files (15,485 LOC)
    • 1 *.rb files (68 LOC)
    • 1 *.xml files (14 LOC)
  • " *.java" is biggest, containing 99.47% of LOC.
  • " *.xml" is smallest, containing 0.09% of LOC.


*.java15485 LOC (99%) 106 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 (11 LOC, 0.0% vs. main code). All matches are in *.html files.


*.html11 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 ".*[.]sh".
    • files with paths like ".*/docker[-]compose[.]yml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*[.]bat".
  • 10 files match defined criteria (398 LOC, 1.4% vs. main code):
    • 5 *.sh files (227 LOC)
    • 4 *.yml files (100 LOC)
    • 1 *.bat files (71 LOC)
  • " *.sh" is biggest, containing 57.04% of LOC.
  • " *.bat" is smallest, containing 17.84% of LOC.


*.sh227 LOC (57%) 5 files
*.yml100 LOC (25%) 4 files
*.bat71 LOC (17%) 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 ".*[.]json".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/config/checkstyle/.*".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*[.]txt".
  • 56 files match defined criteria (6,061 LOC, 20.9% vs. main code):
    • 42 *.md files (5,628 LOC)
    • 11 *.properties files (255 LOC)
    • 2 *.xml files (145 LOC)
    • 1 *.txt files (33 LOC)
  • " *.md" is biggest, containing 92.86% of LOC.
  • " *.txt" is smallest, containing 0.54% of LOC.


*.md5628 LOC (92%) 42 files
*.properties255 LOC (4%) 11 files
*.xml145 LOC (2%) 2 files
*.txt33 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 18:18