spotify / flink-on-k8s-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
txt
tpl
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.

main27422 LOC (83%) 86 files
test4348 LOC (13%) 18 files
generated0 LOC (0%) 0 files
build and deployment73 LOC (<1%) 1 file
other866 LOC (2%) 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 ".*".
  • 86 files match defined criteria (27,422 LOC, 100.0% vs. main code):
    • 57 *.yaml files (19,755 LOC)
    • 26 *.go files (7,561 LOC)
    • 2 *.tpl files (82 LOC)
    • 1 *.xml files (24 LOC)
  • " *.yaml" is biggest, containing 72.04% of LOC.
  • " *.xml" is smallest, containing 0.09% of LOC.


*.yaml19755 LOC (72%) 57 files
*.go7561 LOC (27%) 26 files
*.tpl82 LOC (<1%) 2 files
*.xml24 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 ".*_test[.].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/[Tt]ests/.*".
  • 18 files match defined criteria (4,348 LOC, 15.9% vs. main code):
    • 13 *.go files (4,223 LOC)
    • 4 *.yaml files (119 LOC)
    • 1 *.sh files (6 LOC)
  • " *.go" is biggest, containing 97.13% of LOC.
  • " *.sh" is smallest, containing 0.14% of LOC.


*.go4223 LOC (97%) 13 files
*.yaml119 LOC (2%) 4 files
*.sh6 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 1 file matches defined criteria (73 LOC, 0.3% vs. main code). All matches are in *.sh files.


*.sh73 LOC (100%) 1 file
Other Code
mod
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ee]xamples/.*".
  • 25 files match defined criteria (866 LOC, 3.2% vs. main code):
    • 16 *.yaml files (552 LOC)
    • 7 *.md files (230 LOC)
    • 1 *.mod files (72 LOC)
    • 1 *.txt files (12 LOC)
  • " *.yaml" is biggest, containing 63.74% of LOC.
  • " *.txt" is smallest, containing 1.39% of LOC.


*.yaml552 LOC (63%) 16 files
*.md230 LOC (26%) 7 files
*.mod72 LOC (8%) 1 file
*.txt12 LOC (1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-01-17 11:39