apache / pinot
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
proto
tpl
babelrc
cmd
orc
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.

main395499 LOC (55%) 3,641 files
test248659 LOC (34%) 1,398 files
generated6 LOC (<1%) 1 file
build and deployment9294 LOC (1%) 96 files
other58893 LOC (8%) 474 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
tpl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 3641 files match defined criteria (395,499 LOC, 100.0% vs. main code):
    • 3,374 *.java files (371,699 LOC)
    • 108 *.tsx files (13,545 LOC)
    • 70 *.yaml files (3,333 LOC)
    • 28 *.xml files (1,927 LOC)
    • 30 *.scala files (1,754 LOC)
    • 9 *.ts files (1,683 LOC)
    • 6 *.proto files (499 LOC)
    • 2 *.tpl files (364 LOC)
    • 5 *.html files (328 LOC)
    • 1 *.ftl files (105 LOC)
    • 2 *.css files (101 LOC)
    • 3 *.thrift files (97 LOC)
    • 1 *.rdf files (47 LOC)
    • 1 *.groovy files (14 LOC)
    • 1 *.inc files (3 LOC)
  • " *.java" is biggest, containing 93.98% of LOC.
  • " *.inc" is smallest, containing 0% of LOC.


*.java371699 LOC (93%) 3,374 files
*.tsx13545 LOC (3%) 108 files
*.yaml3333 LOC (<1%) 70 files
*.xml1927 LOC (<1%) 28 files
*.scala1754 LOC (<1%) 30 files
*.ts1683 LOC (<1%) 9 files
*.proto499 LOC (<1%) 6 files
*.tpl364 LOC (<1%) 2 files
*.html328 LOC (<1%) 5 files
*.ftl105 LOC (<1%) 1 file
*.css101 LOC (<1%) 2 files
*.thrift97 LOC (<1%) 3 files
*.rdf47 LOC (<1%) 1 file
*.groovy14 LOC (<1%) 1 file
*.inc3 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
proto
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*_test[.].*".
  • 1398 files match defined criteria (248,659 LOC, 62.9% vs. main code):
    • 1,285 *.java files (243,646 LOC)
    • 20 *.scala files (1,535 LOC)
    • 28 *.sql files (1,008 LOC)
    • 34 *.xml files (846 LOC)
    • 19 *.yaml files (659 LOC)
    • 4 *.avsc files (656 LOC)
    • 4 *.proto files (146 LOC)
    • 2 *.py files (78 LOC)
    • 1 *.html files (60 LOC)
    • 1 *.thrift files (25 LOC)
  • " *.java" is biggest, containing 97.98% of LOC.
  • " *.thrift" is smallest, containing 0.01% of LOC.


*.java243646 LOC (97%) 1,285 files
*.scala1535 LOC (<1%) 20 files
*.sql1008 LOC (<1%) 28 files
*.xml846 LOC (<1%) 34 files
*.yaml659 LOC (<1%) 19 files
*.avsc656 LOC (<1%) 4 files
*.proto146 LOC (<1%) 4 files
*.py78 LOC (<1%) 2 files
*.html60 LOC (<1%) 1 file
*.thrift25 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 ".*/package[-]lock[.]json".
  • 1 file matches defined criteria (6 LOC, 0.0% vs. main code). All matches are in *.json files.


*.json6 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 ".*/pom[.]xml".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
    • files with paths like ".*[.]dockerfile".
  • 96 files match defined criteria (9,294 LOC, 2.3% vs. main code):
    • 76 *.xml files (8,035 LOC)
    • 13 *.sh files (909 LOC)
    • 6 *.dockerfile files (254 LOC)
    • 1 *.js files (96 LOC)
  • " *.xml" is biggest, containing 86.45% of LOC.
  • " *.js" is smallest, containing 1.03% of LOC.


*.xml8035 LOC (86%) 76 files
*.sh909 LOC (9%) 13 files
*.dockerfile254 LOC (2%) 6 files
*.js96 LOC (1%) 1 file
Other Code
properties
orc
txt
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 ".*[.]json".
    • files with paths like ".*/[Dd]ocumentation/.*".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/[.]dockerignore".
  • 474 files match defined criteria (58,893 LOC, 14.9% vs. main code):
    • 300 *.json files (41,332 LOC)
    • 36 *.properties files (4,599 LOC)
    • 1 *.orc files (4,529 LOC)
    • 56 *.txt files (3,694 LOC)
    • 31 *.md files (2,794 LOC)
    • 48 *.yaml files (1,694 LOC)
    • 1 *.xml files (187 LOC)
    • 1 *.java files (64 LOC)
  • " *.json" is biggest, containing 70.18% of LOC.
  • " *.java" is smallest, containing 0.11% of LOC.


*.json41332 LOC (70%) 300 files
*.properties4599 LOC (7%) 36 files
*.orc4529 LOC (7%) 1 file
*.txt3694 LOC (6%) 56 files
*.md2794 LOC (4%) 31 files
*.yaml1694 LOC (2%) 48 files
*.xml187 LOC (<1%) 1 file
*.java64 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:41