apache / ozone
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
robot
txt
properties
proto
bats
xsl
cfg
ini
pub
patch
editorconfig
eslintignore
gitattributes
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.

main307476 LOC (53%) 3,011 files
test239941 LOC (41%) 1,408 files
generated0 LOC (0%) 0 files
build and deployment19213 LOC (3%) 101 files
other10584 LOC (1%) 65 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
bats
xsl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 3011 files match defined criteria (307,476 LOC, 100.0% vs. main code):
    • 2,757 *.java files (275,144 LOC)
    • 92 *.tsx files (12,867 LOC)
    • 18 *.proto files (6,210 LOC)
    • 48 *.xml files (5,740 LOC)
    • 6 *.css files (1,531 LOC)
    • 7 *.cc files (1,337 LOC)
    • 20 *.html files (1,074 LOC)
    • 5 *.js files (882 LOC)
    • 29 *.less files (862 LOC)
    • 12 *.ts files (698 LOC)
    • 3 *.bats files (530 LOC)
    • 7 *.h files (292 LOC)
    • 3 *.c files (155 LOC)
    • 2 *.cpp files (104 LOC)
    • 1 *.xsl files (33 LOC)
    • 1 *.yaml files (17 LOC)
  • " *.java" is biggest, containing 89.48% of LOC.
  • " *.yaml" is smallest, containing 0.01% of LOC.


*.java275144 LOC (89%) 2,757 files
*.tsx12867 LOC (4%) 92 files
*.proto6210 LOC (2%) 18 files
*.xml5740 LOC (1%) 48 files
*.css1531 LOC (<1%) 6 files
*.cc1337 LOC (<1%) 7 files
*.html1074 LOC (<1%) 20 files
*.js882 LOC (<1%) 5 files
*.less862 LOC (<1%) 29 files
*.ts698 LOC (<1%) 12 files
*.bats530 LOC (<1%) 3 files
*.h292 LOC (<1%) 7 files
*.c155 LOC (<1%) 3 files
*.cpp104 LOC (<1%) 2 files
*.xsl33 LOC (<1%) 1 file
*.yaml17 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 ".*[-]tests/.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*__tests__.*".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/[Mm]ocks/.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*/vitest[.].*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*[-]tests[-].*".
    • files with paths like ".*/test[.].*".
  • 1408 files match defined criteria (239,941 LOC, 78.0% vs. main code):
    • 1,340 *.java files (236,087 LOC)
    • 32 *.xml files (1,142 LOC)
    • 16 *.py files (998 LOC)
    • 8 *.ts files (927 LOC)
    • 7 *.tsx files (640 LOC)
    • 4 *.yaml files (122 LOC)
    • 1 *.sh files (25 LOC)
  • " *.java" is biggest, containing 98.39% of LOC.
  • " *.sh" is smallest, containing 0.01% of LOC.


*.java236087 LOC (98%) 1,340 files
*.xml1142 LOC (<1%) 32 files
*.py998 LOC (<1%) 16 files
*.ts927 LOC (<1%) 8 files
*.tsx640 LOC (<1%) 7 files
*.yaml122 LOC (<1%) 4 files
*.sh25 LOC (<1%) 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 ".*/pom[.]xml".
    • files with paths like ".*/docker[-]compose[.]yaml".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/pnpm.*[.]ya?ml".
    • files with paths like ".*/[.]gitattributes".
  • 101 files match defined criteria (19,213 LOC, 6.2% vs. main code):
    • 49 *.xml files (11,181 LOC)
    • 1 *.yaml files (6,425 LOC)
    • 51 *.sh files (1,607 LOC)
  • " *.xml" is biggest, containing 58.19% of LOC.
  • " *.sh" is smallest, containing 8.36% of LOC.


*.xml11181 LOC (58%) 49 files
*.yaml6425 LOC (33%) 1 file
*.sh1607 LOC (8%) 51 files
Other Code
properties
patch
txt
xsl
ini
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]ini".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*[.]patch".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*[.]editorconfig".
  • 65 files match defined criteria (10,584 LOC, 3.4% vs. main code):
    • 10 *.json files (7,465 LOC)
    • 28 *.properties files (864 LOC)
    • 14 *.md files (810 LOC)
    • 1 *.patch files (544 LOC)
    • 7 *.txt files (466 LOC)
    • 1 *.xsl files (140 LOC)
    • 1 *.ini files (140 LOC)
    • 2 *.xml files (122 LOC)
    • 1 *.sh files (33 LOC)
  • " *.json" is biggest, containing 70.53% of LOC.
  • " *.sh" is smallest, containing 0.31% of LOC.


*.json7465 LOC (70%) 10 files
*.properties864 LOC (8%) 28 files
*.md810 LOC (7%) 14 files
*.patch544 LOC (5%) 1 file
*.txt466 LOC (4%) 7 files
*.xsl140 LOC (1%) 1 file
*.ini140 LOC (1%) 1 file
*.xml122 LOC (1%) 2 files
*.sh33 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 19:59