epam / kubernetes-perf-tests
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
patch
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.

main45396 LOC (70%) 444 files
test5855 LOC (9%) 44 files
generated0 LOC (0%) 0 files
build and deployment393 LOC (<1%) 16 files
other12845 LOC (19%) 63 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 ".*".
  • 444 files match defined criteria (45,396 LOC, 100.0% vs. main code):
    • 234 *.yaml files (21,864 LOC)
    • 189 *.go files (21,058 LOC)
    • 15 *.py files (2,032 LOC)
    • 1 *.js files (295 LOC)
    • 1 *.html files (69 LOC)
    • 1 *.css files (45 LOC)
    • 3 *.sql files (33 LOC)
  • " *.yaml" is biggest, containing 48.16% of LOC.
  • " *.sql" is smallest, containing 0.07% of LOC.


*.yaml21864 LOC (48%) 234 files
*.go21058 LOC (46%) 189 files
*.py2032 LOC (4%) 15 files
*.js295 LOC (<1%) 1 file
*.html69 LOC (<1%) 1 file
*.css45 LOC (<1%) 1 file
*.sql33 LOC (<1%) 3 files
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 ".*/test[-]data/.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*[-]tests/.*".
  • 44 files match defined criteria (5,855 LOC, 12.9% vs. main code):
    • 35 *.go files (5,551 LOC)
    • 2 *.py files (144 LOC)
    • 6 *.yaml files (142 LOC)
    • 1 *.sh files (18 LOC)
  • " *.go" is biggest, containing 94.81% of LOC.
  • " *.sh" is smallest, containing 0.31% of LOC.


*.go5551 LOC (94%) 35 files
*.py144 LOC (2%) 2 files
*.yaml142 LOC (2%) 6 files
*.sh18 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".
  • 16 files match defined criteria (393 LOC, 0.9% vs. main code). All matches are in *.sh files.


*.sh393 LOC (100%) 16 files
Other Code
txt
mod
patch
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]patch".
  • 63 files match defined criteria (12,845 LOC, 28.3% vs. main code):
    • 5 *.json files (10,832 LOC)
    • 27 *.md files (993 LOC)
    • 17 *.txt files (586 LOC)
    • 11 *.mod files (294 LOC)
    • 2 *.yaml files (75 LOC)
    • 1 *.patch files (65 LOC)
  • " *.json" is biggest, containing 84.33% of LOC.
  • " *.patch" is smallest, containing 0.51% of LOC.


*.json10832 LOC (84%) 5 files
*.md993 LOC (7%) 27 files
*.txt586 LOC (4%) 17 files
*.mod294 LOC (2%) 11 files
*.yaml75 LOC (<1%) 2 files
*.patch65 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-01-10 14:23