elastic / elasticsearch-k8s-metrics-adapter
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
properties
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.

main2840 LOC (68%) 39 files
test641 LOC (15%) 7 files
generated0 LOC (0%) 0 files
build and deployment18 LOC (<1%) 1 file
other646 LOC (15%) 9 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 ".*".
  • 39 files match defined criteria (2,840 LOC, 100.0% vs. main code):
    • 24 *.go files (2,345 LOC)
    • 14 *.yaml files (464 LOC)
    • 1 *.tpl files (31 LOC)
  • " *.go" is biggest, containing 82.57% of LOC.
  • " *.tpl" is smallest, containing 1.09% of LOC.


*.go2345 LOC (82%) 24 files
*.yaml464 LOC (16%) 14 files
*.tpl31 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[.].*".
  • 7 files match defined criteria (641 LOC, 22.6% vs. main code). All matches are in *.go files.


*.go641 LOC (100%) 7 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".
  • 1 file matches defined criteria (18 LOC, 0.6% vs. main code). All matches are in *.sh files.


*.sh18 LOC (100%) 1 file
Other Code
txt
mod
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/go[.]mod".
  • 9 files match defined criteria (646 LOC, 22.7% vs. main code):
    • 2 *.md files (310 LOC)
    • 3 *.txt files (189 LOC)
    • 1 *.mod files (124 LOC)
    • 2 *.json files (16 LOC)
    • 1 *.properties files (7 LOC)
  • " *.md" is biggest, containing 47.99% of LOC.
  • " *.properties" is smallest, containing 1.08% of LOC.


*.md310 LOC (47%) 2 files
*.txt189 LOC (29%) 3 files
*.mod124 LOC (19%) 1 file
*.json16 LOC (2%) 2 files
*.properties7 LOC (1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-13 19:55