apache / gravitino
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
properties
rest
editorconfig
npmrc
in
gitattributes
tpl
prettierignore
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.

main160852 LOC (46%) 2,150 files
test154525 LOC (44%) 1,159 files
generated0 LOC (0%) 0 files
build and deployment6917 LOC (1%) 31 files
other26502 LOC (7%) 987 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
tpl
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 2150 files match defined criteria (160,852 LOC, 100.0% vs. main code):
    • 1,740 *.java files (124,253 LOC)
    • 86 *.js files (11,980 LOC)
    • 175 *.py files (7,640 LOC)
    • 30 *.sql files (5,324 LOC)
    • 68 *.kts files (5,284 LOC)
    • 20 *.rs files (4,617 LOC)
    • 10 *.yaml files (644 LOC)
    • 13 *.xml files (602 LOC)
    • 4 *.toml files (404 LOC)
    • 1 *.tpl files (60 LOC)
    • 1 *.in files (24 LOC)
    • 1 *.css files (10 LOC)
    • 1 *.ts files (10 LOC)
  • " *.java" is biggest, containing 77.25% of LOC.
  • " *.ts" is smallest, containing 0.01% of LOC.


*.java124253 LOC (77%) 1,740 files
*.js11980 LOC (7%) 86 files
*.py7640 LOC (4%) 175 files
*.sql5324 LOC (3%) 30 files
*.kts5284 LOC (3%) 68 files
*.rs4617 LOC (2%) 20 files
*.yaml644 LOC (<1%) 10 files
*.xml602 LOC (<1%) 13 files
*.toml404 LOC (<1%) 4 files
*.tpl60 LOC (<1%) 1 file
*.in24 LOC (<1%) 1 file
*.css10 LOC (<1%) 1 file
*.ts10 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 ".*[-]tests/.*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/test_.*".
  • 1159 files match defined criteria (154,525 LOC, 96.1% vs. main code):
    • 634 *.java files (123,648 LOC)
    • 440 *.sql files (21,778 LOC)
    • 59 *.py files (7,814 LOC)
    • 16 *.sh files (418 LOC)
    • 1 *.rs files (397 LOC)
    • 3 *.yaml files (274 LOC)
    • 3 *.toml files (112 LOC)
    • 1 *.kts files (54 LOC)
    • 2 *.xml files (30 LOC)
  • " *.java" is biggest, containing 80.02% of LOC.
  • " *.xml" is smallest, containing 0.02% of LOC.


*.java123648 LOC (80%) 634 files
*.sql21778 LOC (14%) 440 files
*.py7814 LOC (5%) 59 files
*.sh418 LOC (<1%) 16 files
*.rs397 LOC (<1%) 1 file
*.yaml274 LOC (<1%) 3 files
*.toml112 LOC (<1%) 3 files
*.kts54 LOC (<1%) 1 file
*.xml30 LOC (<1%) 2 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 ".*[.]sh".
    • files with paths like ".*/docker[-]compose[.]yaml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/pnpm.*[.]ya?ml".
    • files with paths like ".*[.]bat".
  • 31 files match defined criteria (6,917 LOC, 4.3% vs. main code):
    • 1 *.yaml files (5,295 LOC)
    • 30 *.sh files (1,622 LOC)
  • " *.yaml" is biggest, containing 76.55% of LOC.
  • " *.sh" is smallest, containing 23.45% of LOC.


*.yaml5295 LOC (76%) 1 file
*.sh1622 LOC (23%) 30 files
Other Code
txt
properties
rest
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 ".*[.]txt".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[.]prettierignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]npmrc".
    • files with paths like ".*[.]editorconfig".
  • 987 files match defined criteria (26,502 LOC, 16.5% vs. main code):
    • 907 *.txt files (22,199 LOC)
    • 50 *.properties files (2,064 LOC)
    • 18 *.md files (1,113 LOC)
    • 2 *.rest files (846 LOC)
    • 8 *.svg files (188 LOC)
    • 2 *.json files (92 LOC)
  • " *.txt" is biggest, containing 83.76% of LOC.
  • " *.json" is smallest, containing 0.35% of LOC.


*.txt22199 LOC (83%) 907 files
*.properties2064 LOC (7%) 50 files
*.md1113 LOC (4%) 18 files
*.rest846 LOC (3%) 2 files
*.svg188 LOC (<1%) 8 files
*.json92 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 20:49