apache / calcite
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
txt
cql
htaccess
gitattributes
spec
pig
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.

main287079 LOC (65%) 2,161 files
test132200 LOC (30%) 486 files
generated25 LOC (<1%) 1 file
build and deployment173 LOC (<1%) 5 files
other18663 LOC (4%) 179 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 2161 files match defined criteria (287,079 LOC, 100.0% vs. main code):
    • 2,084 *.java files (281,389 LOC)
    • 32 *.kts files (2,318 LOC)
    • 6 *.scss files (1,099 LOC)
    • 5 *.ftl files (1,057 LOC)
    • 22 *.html files (889 LOC)
    • 9 *.kt files (272 LOC)
    • 1 *.rdf files (44 LOC)
    • 2 *.rb files (11 LOC)
  • " *.java" is biggest, containing 98.02% of LOC.
  • " *.rb" is smallest, containing 0% of LOC.


*.java281389 LOC (98%) 2,084 files
*.kts2318 LOC (<1%) 32 files
*.scss1099 LOC (<1%) 6 files
*.ftl1057 LOC (<1%) 5 files
*.html889 LOC (<1%) 22 files
*.kt272 LOC (<1%) 9 files
*.rdf44 LOC (<1%) 1 file
*.rb11 LOC (<1%) 2 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
cql
spec
pig
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*_test[.].*".
  • 486 files match defined criteria (132,200 LOC, 46.1% vs. main code):
    • 427 *.java files (118,197 LOC)
    • 23 *.xml files (11,875 LOC)
    • 3 *.cql files (751 LOC)
    • 3 *.kt files (344 LOC)
    • 5 *.sql files (319 LOC)
    • 12 *.yaml files (242 LOC)
    • 6 *.html files (194 LOC)
    • 2 *.ftl files (109 LOC)
    • 1 *.spec files (72 LOC)
    • 1 *.pig files (37 LOC)
    • 1 *.py files (34 LOC)
    • 2 *.sh files (26 LOC)
  • " *.java" is biggest, containing 89.41% of LOC.
  • " *.sh" is smallest, containing 0.02% of LOC.


*.java118197 LOC (89%) 427 files
*.xml11875 LOC (8%) 23 files
*.cql751 LOC (<1%) 3 files
*.kt344 LOC (<1%) 3 files
*.sql319 LOC (<1%) 5 files
*.yaml242 LOC (<1%) 12 files
*.html194 LOC (<1%) 6 files
*.ftl109 LOC (<1%) 2 files
*.spec72 LOC (<1%) 1 file
*.pig37 LOC (<1%) 1 file
*.py34 LOC (<1%) 1 file
*.sh26 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 ".*[.](html|html|xhtml)" AND any line of content like "[ ]*[<]meta name[=]"generator" .*".
  • 1 file matches defined criteria (25 LOC, 0.0% vs. main code). All matches are in *.html files.


*.html25 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 ".*[.]bat".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
  • 5 files match defined criteria (173 LOC, 0.1% vs. main code):
    • 4 *.bat files (168 LOC)
    • 1 *.sh files (5 LOC)
  • " *.bat" is biggest, containing 97.11% of LOC.
  • " *.sh" is smallest, containing 2.89% of LOC.


*.bat168 LOC (97%) 4 files
*.sh5 LOC (2%) 1 file
Other Code
properties
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • 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 ".*[.]svg".
    • files with paths like ".*/[.]htaccess".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]editorconfig".
  • 179 files match defined criteria (18,663 LOC, 6.5% vs. main code):
    • 90 *.md files (13,099 LOC)
    • 51 *.json files (3,128 LOC)
    • 26 *.properties files (1,004 LOC)
    • 7 *.txt files (761 LOC)
    • 1 *.svg files (344 LOC)
    • 2 *.xml files (170 LOC)
    • 2 *.java files (157 LOC)
  • " *.md" is biggest, containing 70.19% of LOC.
  • " *.java" is smallest, containing 0.84% of LOC.


*.md13099 LOC (70%) 90 files
*.json3128 LOC (16%) 51 files
*.properties1004 LOC (5%) 26 files
*.txt761 LOC (4%) 7 files
*.svg344 LOC (1%) 1 file
*.xml170 LOC (<1%) 2 files
*.java157 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:43