apache / spark-kubernetes-operator
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
tpl
txt
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.

main7288 LOC (61%) 122 files
test3251 LOC (27%) 49 files
generated0 LOC (0%) 0 files
build and deployment357 LOC (3%) 9 files
other892 LOC (7%) 25 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
tpl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 122 files match defined criteria (7,288 LOC, 100.0% vs. main code):
    • 112 *.java files (5,896 LOC)
    • 5 *.yaml files (629 LOC)
    • 1 *.py files (496 LOC)
    • 1 *.tpl files (133 LOC)
    • 2 *.xml files (68 LOC)
    • 1 *.toml files (66 LOC)
  • " *.java" is biggest, containing 80.9% of LOC.
  • " *.toml" is smallest, containing 0.91% of LOC.


*.java5896 LOC (80%) 112 files
*.yaml629 LOC (8%) 5 files
*.py496 LOC (6%) 1 file
*.tpl133 LOC (1%) 1 file
*.xml68 LOC (<1%) 2 files
*.toml66 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]ests/.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/e2e/.*".
  • 49 files match defined criteria (3,251 LOC, 44.6% vs. main code):
    • 30 *.java files (2,684 LOC)
    • 19 *.yaml files (567 LOC)
  • " *.java" is biggest, containing 82.56% of LOC.
  • " *.yaml" is smallest, containing 17.44% of LOC.


*.java2684 LOC (82%) 30 files
*.yaml567 LOC (17%) 19 files
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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 9 files match defined criteria (357 LOC, 4.9% vs. main code):
    • 7 *.gradle files (342 LOC)
    • 2 *.sh files (15 LOC)
  • " *.gradle" is biggest, containing 95.8% of LOC.
  • " *.sh" is smallest, containing 4.2% of LOC.


*.gradle342 LOC (95%) 7 files
*.sh15 LOC (4%) 2 files
Other Code
properties
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 ".*/config/checkstyle/.*".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
  • 25 files match defined criteria (892 LOC, 12.2% vs. main code):
    • 16 *.yaml files (402 LOC)
    • 1 *.xml files (151 LOC)
    • 1 *.md files (114 LOC)
    • 2 *.json files (98 LOC)
    • 3 *.properties files (86 LOC)
    • 2 *.sh files (41 LOC)
  • " *.yaml" is biggest, containing 45.07% of LOC.
  • " *.sh" is smallest, containing 4.6% of LOC.


*.yaml402 LOC (45%) 16 files
*.xml151 LOC (16%) 1 file
*.md114 LOC (12%) 1 file
*.json98 LOC (10%) 2 files
*.properties86 LOC (9%) 3 files
*.sh41 LOC (4%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 20:58