apache / hudi
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
proto
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.

main273271 LOC (50%) 2,673 files
test215349 LOC (39%) 1,179 files
generated0 LOC (0%) 0 files
build and deployment18335 LOC (3%) 152 files
other34660 LOC (6%) 362 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 ".*".
  • 2673 files match defined criteria (273,271 LOC, 100.0% vs. main code):
    • 2,264 *.java files (219,846 LOC)
    • 334 *.scala files (41,500 LOC)
    • 7 *.g4 files (5,627 LOC)
    • 14 *.xml files (2,625 LOC)
    • 33 *.avsc files (2,598 LOC)
    • 2 *.py files (350 LOC)
    • 1 *.rdf files (217 LOC)
    • 9 *.sql files (153 LOC)
    • 2 *.yaml files (105 LOC)
    • 2 *.proto files (103 LOC)
    • 4 *.mustache files (82 LOC)
    • 1 *.thrift files (65 LOC)
  • " *.java" is biggest, containing 80.45% of LOC.
  • " *.thrift" is smallest, containing 0.02% of LOC.


*.java219846 LOC (80%) 2,264 files
*.scala41500 LOC (15%) 334 files
*.g45627 LOC (2%) 7 files
*.xml2625 LOC (<1%) 14 files
*.avsc2598 LOC (<1%) 33 files
*.py350 LOC (<1%) 2 files
*.rdf217 LOC (<1%) 1 file
*.sql153 LOC (<1%) 9 files
*.yaml105 LOC (<1%) 2 files
*.proto103 LOC (<1%) 2 files
*.mustache82 LOC (<1%) 4 files
*.thrift65 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 ".*/test_.*".
    • files with paths like ".*[-]tests[-].*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*_test[.].*".
  • 1179 files match defined criteria (215,349 LOC, 78.8% vs. main code):
    • 900 *.java files (156,747 LOC)
    • 184 *.scala files (49,640 LOC)
    • 67 *.avsc files (7,102 LOC)
    • 9 *.xml files (885 LOC)
    • 10 *.sql files (314 LOC)
    • 1 *.py files (198 LOC)
    • 4 *.yaml files (190 LOC)
    • 3 *.proto files (152 LOC)
    • 1 *.sh files (121 LOC)
  • " *.java" is biggest, containing 72.79% of LOC.
  • " *.sh" is smallest, containing 0.06% of LOC.


*.java156747 LOC (72%) 900 files
*.scala49640 LOC (23%) 184 files
*.avsc7102 LOC (3%) 67 files
*.xml885 LOC (<1%) 9 files
*.sql314 LOC (<1%) 10 files
*.py198 LOC (<1%) 1 file
*.yaml190 LOC (<1%) 4 files
*.proto152 LOC (<1%) 3 files
*.sh121 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 ".*/assembly/src[.]xml".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 152 files match defined criteria (18,335 LOC, 6.7% vs. main code):
    • 80 *.xml files (15,945 LOC)
    • 72 *.sh files (2,390 LOC)
  • " *.xml" is biggest, containing 86.96% of LOC.
  • " *.sh" is smallest, containing 13.04% of LOC.


*.xml15945 LOC (86%) 80 files
*.sh2390 LOC (13%) 72 files
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 ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*/[Ee]xamples/.*".
  • 362 files match defined criteria (34,660 LOC, 12.7% vs. main code):
    • 137 *.json files (15,790 LOC)
    • 56 *.md files (10,108 LOC)
    • 79 *.properties files (2,626 LOC)
    • 46 *.yaml files (2,509 LOC)
    • 20 *.java files (1,897 LOC)
    • 5 *.avsc files (780 LOC)
    • 11 *.txt files (366 LOC)
    • 2 *.xml files (245 LOC)
    • 2 *.scala files (192 LOC)
    • 4 *.sh files (147 LOC)
  • " *.json" is biggest, containing 45.56% of LOC.
  • " *.sh" is smallest, containing 0.42% of LOC.


*.json15790 LOC (45%) 137 files
*.md10108 LOC (29%) 56 files
*.properties2626 LOC (7%) 79 files
*.yaml2509 LOC (7%) 46 files
*.java1897 LOC (5%) 20 files
*.avsc780 LOC (2%) 5 files
*.txt366 LOC (1%) 11 files
*.xml245 LOC (<1%) 2 files
*.scala192 LOC (<1%) 2 files
*.sh147 LOC (<1%) 4 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 16:57