apache / yunikorn-k8shim
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
mod
tpl
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.

main6330 LOC (18%) 54 files
test20587 LOC (61%) 101 files
generated0 LOC (0%) 0 files
build and deployment411 LOC (1%) 5 files
other6186 LOC (18%) 84 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 ".*".
  • 54 files match defined criteria (6,330 LOC, 100.0% vs. main code):
    • 41 *.go files (5,829 LOC)
    • 11 *.yaml files (485 LOC)
    • 1 *.tpl files (9 LOC)
    • 1 *.html files (7 LOC)
  • " *.go" is biggest, containing 92.09% of LOC.
  • " *.html" is smallest, containing 0.11% of LOC.


*.go5829 LOC (92%) 41 files
*.yaml485 LOC (7%) 11 files
*.tpl9 LOC (<1%) 1 file
*.html7 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 ".*[-]tests/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*_mock[.][a-zA-Z0-9_\-]+".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/e2e/.*".
    • files with paths like ".*/test_.*".
  • 101 files match defined criteria (20,587 LOC, 325.2% vs. main code). All matches are in *.go files.


*.go20587 LOC (100%) 101 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
  • 5 files match defined criteria (411 LOC, 6.5% vs. main code). All matches are in *.sh files.


*.sh411 LOC (100%) 5 files
Other Code
mod
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]json".
    • files with paths like ".*/go[.]mod".
  • 84 files match defined criteria (6,186 LOC, 97.7% vs. main code):
    • 2 *.json files (2,461 LOC)
    • 61 *.yaml files (2,458 LOC)
    • 11 *.md files (649 LOC)
    • 7 *.sh files (216 LOC)
    • 1 *.mod files (194 LOC)
    • 1 *.py files (193 LOC)
    • 1 *.txt files (15 LOC)
  • " *.json" is biggest, containing 39.78% of LOC.
  • " *.txt" is smallest, containing 0.24% of LOC.


*.json2461 LOC (39%) 2 files
*.yaml2458 LOC (39%) 61 files
*.md649 LOC (10%) 11 files
*.sh216 LOC (3%) 7 files
*.mod194 LOC (3%) 1 file
*.py193 LOC (3%) 1 file
*.txt15 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 19:54