apache / iceberg
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
prefs
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.

main285690 LOC (45%) 2,524 files
test340691 LOC (53%) 1,571 files
generated0 LOC (0%) 0 files
build and deployment3139 LOC (<1%) 26 files
other2865 LOC (<1%) 42 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 ".*".
  • 2524 files match defined criteria (285,690 LOC, 100.0% vs. main code):
    • 2,369 *.java files (272,493 LOC)
    • 145 *.scala files (7,210 LOC)
    • 2 *.yaml files (4,535 LOC)
    • 2 *.g4 files (628 LOC)
    • 3 *.html files (462 LOC)
    • 1 *.toml files (213 LOC)
    • 1 *.xml files (108 LOC)
    • 1 *.rdf files (41 LOC)
  • " *.java" is biggest, containing 95.38% of LOC.
  • " *.rdf" is smallest, containing 0.01% of LOC.


*.java272493 LOC (95%) 2,369 files
*.scala7210 LOC (2%) 145 files
*.yaml4535 LOC (1%) 2 files
*.g4628 LOC (<1%) 2 files
*.html462 LOC (<1%) 3 files
*.toml213 LOC (<1%) 1 file
*.xml108 LOC (<1%) 1 file
*.rdf41 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/.*".
  • 1571 files match defined criteria (340,691 LOC, 119.3% vs. main code):
    • 1,569 *.java files (340,236 LOC)
    • 1 *.sql files (448 LOC)
    • 1 *.xml files (7 LOC)
  • " *.java" is biggest, containing 99.87% of LOC.
  • " *.xml" is smallest, containing 0% of LOC.


*.java340236 LOC (99%) 1,569 files
*.sql448 LOC (<1%) 1 file
*.xml7 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 ".*[.]gradle".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/[.]gitattributes".
  • 26 files match defined criteria (3,139 LOC, 1.1% vs. main code):
    • 18 *.gradle files (2,885 LOC)
    • 8 *.sh files (254 LOC)
  • " *.gradle" is biggest, containing 91.91% of LOC.
  • " *.sh" is smallest, containing 8.09% of LOC.


*.gradle2885 LOC (91%) 18 files
*.sh254 LOC (8%) 8 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 ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]svg".
  • 42 files match defined criteria (2,865 LOC, 1.0% vs. main code):
    • 27 *.json files (1,442 LOC)
    • 8 *.md files (866 LOC)
    • 1 *.ipynb files (424 LOC)
    • 3 *.properties files (77 LOC)
    • 3 *.txt files (56 LOC)
  • " *.json" is biggest, containing 50.33% of LOC.
  • " *.txt" is smallest, containing 1.95% of LOC.


*.json1442 LOC (50%) 27 files
*.md866 LOC (30%) 8 files
*.ipynb424 LOC (14%) 1 file
*.properties77 LOC (2%) 3 files
*.txt56 LOC (1%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 19:46