apache / openserverless-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
properties
lua
nix
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.

main30523 LOC (78%) 333 files
test4619 LOC (11%) 66 files
generated0 LOC (0%) 0 files
build and deployment149 LOC (<1%) 9 files
other3426 LOC (8%) 57 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
nix
lua
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 333 files match defined criteria (30,523 LOC, 100.0% vs. main code):
    • 182 *.yaml files (16,929 LOC)
    • 141 *.py files (13,377 LOC)
    • 1 *.nix files (78 LOC)
    • 1 *.toml files (47 LOC)
    • 4 *.html files (36 LOC)
    • 2 *.sql files (24 LOC)
    • 1 *.js files (17 LOC)
    • 1 *.lua files (15 LOC)
  • " *.yaml" is biggest, containing 55.46% of LOC.
  • " *.lua" is smallest, containing 0.05% of LOC.


*.yaml16929 LOC (55%) 182 files
*.py13377 LOC (43%) 141 files
*.nix78 LOC (<1%) 1 file
*.toml47 LOC (<1%) 1 file
*.html36 LOC (<1%) 4 files
*.sql24 LOC (<1%) 2 files
*.js17 LOC (<1%) 1 file
*.lua15 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 ".*_test[.].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/test[.].*".
  • 66 files match defined criteria (4,619 LOC, 15.1% vs. main code):
    • 51 *.yaml files (4,401 LOC)
    • 10 *.js files (152 LOC)
    • 5 *.py files (66 LOC)
  • " *.yaml" is biggest, containing 95.28% of LOC.
  • " *.py" is smallest, containing 1.43% of LOC.


*.yaml4401 LOC (95%) 51 files
*.js152 LOC (3%) 10 files
*.py66 LOC (1%) 5 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".
  • 9 files match defined criteria (149 LOC, 0.5% vs. main code). All matches are in *.sh files.


*.sh149 LOC (100%) 9 files
Other Code
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 ".*[.]json".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[.]dockerignore".
  • 57 files match defined criteria (3,426 LOC, 11.2% vs. main code):
    • 1 *.yaml files (1,961 LOC)
    • 43 *.json files (858 LOC)
    • 6 *.md files (413 LOC)
    • 4 *.txt files (147 LOC)
    • 2 *.properties files (34 LOC)
    • 1 *.py files (13 LOC)
  • " *.yaml" is biggest, containing 57.24% of LOC.
  • " *.py" is smallest, containing 0.38% of LOC.


*.yaml1961 LOC (57%) 1 file
*.json858 LOC (25%) 43 files
*.md413 LOC (12%) 6 files
*.txt147 LOC (4%) 4 files
*.properties34 LOC (<1%) 2 files
*.py13 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 21:00