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
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.

main8991 LOC (27%) 93 files
test17414 LOC (53%) 89 files
generated55 LOC (<1%) 2 files
build and deployment313 LOC (<1%) 5 files
other5981 LOC (18%) 77 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 ".*".
  • 93 files match defined criteria (8,991 LOC, 100.0% vs. main code):
    • 81 *.go files (8,489 LOC)
    • 10 *.yaml files (481 LOC)
    • 1 *.yml files (14 LOC)
    • 1 *.html files (7 LOC)
  • " *.go" is biggest, containing 94.42% of LOC.
  • " *.html" is smallest, containing 0.08% of LOC.


*.go8489 LOC (94%) 81 files
*.yaml481 LOC (5%) 10 files
*.yml14 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 ".*/[Tt]est/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/e2e/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*[-]tests/.*".
  • 89 files match defined criteria (17,414 LOC, 193.7% vs. main code). All matches are in *.go files.


*.go17414 LOC (100%) 89 files
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*_generated[.][a-z]+".
  • 2 files match defined criteria (55 LOC, 0.6% vs. main code). All matches are in *.go files.


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


*.sh313 LOC (100%) 5 files
Other Code
mod
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Ee]xamples/.*".
  • 77 files match defined criteria (5,981 LOC, 66.5% vs. main code):
    • 2 *.json files (2,467 LOC)
    • 55 *.yaml files (2,286 LOC)
    • 10 *.md files (608 LOC)
    • 7 *.sh files (216 LOC)
    • 1 *.mod files (196 LOC)
    • 1 *.py files (193 LOC)
    • 1 *.txt files (15 LOC)
  • " *.json" is biggest, containing 41.25% of LOC.
  • " *.txt" is smallest, containing 0.25% of LOC.


*.json2467 LOC (41%) 2 files
*.yaml2286 LOC (38%) 55 files
*.md608 LOC (10%) 10 files
*.sh216 LOC (3%) 7 files
*.mod196 LOC (3%) 1 file
*.py193 LOC (3%) 1 file
*.txt15 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 22:14