apache / celeborn
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
patch
properties
proto
tpl
in
clang-format
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.

main106311 LOC (65%) 881 files
test39504 LOC (24%) 317 files
generated0 LOC (0%) 0 files
build and deployment10309 LOC (6%) 65 files
other7018 LOC (4%) 73 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
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 881 files match defined criteria (106,311 LOC, 100.0% vs. main code):
    • 482 *.java files (54,042 LOC)
    • 238 *.scala files (40,253 LOC)
    • 17 *.yaml files (2,703 LOC)
    • 19 *.cpp files (2,114 LOC)
    • 20 *.h files (1,836 LOC)
    • 3 *.proto files (1,795 LOC)
    • 35 *.vue files (1,302 LOC)
    • 4 *.py files (659 LOC)
    • 44 *.ts files (603 LOC)
    • 3 *.tpl files (290 LOC)
    • 1 *.cmake files (265 LOC)
    • 1 *.bash files (151 LOC)
    • 4 *.sql files (101 LOC)
    • 2 *.xml files (74 LOC)
    • 2 *.html files (65 LOC)
    • 1 *.in files (24 LOC)
    • 1 *.mustache files (16 LOC)
    • 2 *.scss files (12 LOC)
    • 2 *.sbt files (6 LOC)
  • " *.java" is biggest, containing 50.83% of LOC.
  • " *.sbt" is smallest, containing 0.01% of LOC.


*.java54042 LOC (50%) 482 files
*.scala40253 LOC (37%) 238 files
*.yaml2703 LOC (2%) 17 files
*.cpp2114 LOC (1%) 19 files
*.h1836 LOC (1%) 20 files
*.proto1795 LOC (1%) 3 files
*.vue1302 LOC (1%) 35 files
*.py659 LOC (<1%) 4 files
*.ts603 LOC (<1%) 44 files
*.tpl290 LOC (<1%) 3 files
*.cmake265 LOC (<1%) 1 file
*.bash151 LOC (<1%) 1 file
*.sql101 LOC (<1%) 4 files
*.xml74 LOC (<1%) 2 files
*.html65 LOC (<1%) 2 files
*.in24 LOC (<1%) 1 file
*.mustache16 LOC (<1%) 1 file
*.scss12 LOC (<1%) 2 files
*.sbt6 LOC (<1%) 2 files
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]ests/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/[Tt]est/.*".
  • 317 files match defined criteria (39,504 LOC, 37.2% vs. main code):
    • 125 *.java files (21,338 LOC)
    • 135 *.scala files (13,488 LOC)
    • 14 *.cpp files (2,373 LOC)
    • 20 *.xml files (1,133 LOC)
    • 20 *.yaml files (1,056 LOC)
    • 2 *.sql files (91 LOC)
    • 1 *.sh files (25 LOC)
  • " *.java" is biggest, containing 54.01% of LOC.
  • " *.sh" is smallest, containing 0.06% of LOC.


*.java21338 LOC (54%) 125 files
*.scala13488 LOC (34%) 135 files
*.cpp2373 LOC (6%) 14 files
*.xml1133 LOC (2%) 20 files
*.yaml1056 LOC (2%) 20 files
*.sql91 LOC (<1%) 2 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*[.]dockerfile".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/pnpm.*[.]ya?ml".
  • 65 files match defined criteria (10,309 LOC, 9.7% vs. main code):
    • 39 *.xml files (5,645 LOC)
    • 1 *.yaml files (2,754 LOC)
    • 24 *.sh files (1,889 LOC)
    • 1 *.dockerfile files (21 LOC)
  • " *.xml" is biggest, containing 54.76% of LOC.
  • " *.dockerfile" is smallest, containing 0.2% of LOC.


*.xml5645 LOC (54%) 39 files
*.yaml2754 LOC (26%) 1 file
*.sh1889 LOC (18%) 24 files
*.dockerfile21 LOC (<1%) 1 file
Other Code
patch
txt
properties
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 ".*[.]txt".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]patch".
    • files with paths like ".*[.]svg".
  • 73 files match defined criteria (7,018 LOC, 6.6% vs. main code):
    • 5 *.json files (2,305 LOC)
    • 11 *.patch files (2,043 LOC)
    • 39 *.txt files (1,643 LOC)
    • 7 *.md files (645 LOC)
    • 10 *.properties files (242 LOC)
    • 1 *.svg files (140 LOC)
  • " *.json" is biggest, containing 32.84% of LOC.
  • " *.svg" is smallest, containing 1.99% of LOC.


*.json2305 LOC (32%) 5 files
*.patch2043 LOC (29%) 11 files
*.txt1643 LOC (23%) 39 files
*.md645 LOC (9%) 7 files
*.properties242 LOC (3%) 10 files
*.svg140 LOC (1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 20:34