apache / kvrocks-controller
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
mjs
prettierignore
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.

main9440 LOC (74%) 89 files
test2025 LOC (15%) 21 files
generated0 LOC (0%) 0 files
build and deployment30 LOC (<1%) 4 files
other1186 LOC (9%) 18 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
mjs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 89 files match defined criteria (9,440 LOC, 100.0% vs. main code):
    • 51 *.go files (5,928 LOC)
    • 24 *.tsx files (2,756 LOC)
    • 5 *.ts files (471 LOC)
    • 1 *.css files (79 LOC)
    • 1 *.py files (79 LOC)
    • 4 *.yaml files (58 LOC)
    • 1 *.mjs files (37 LOC)
    • 1 *.sql files (26 LOC)
    • 1 *.js files (6 LOC)
  • " *.go" is biggest, containing 62.8% of LOC.
  • " *.js" is smallest, containing 0.06% of LOC.


*.go5928 LOC (62%) 51 files
*.tsx2756 LOC (29%) 24 files
*.ts471 LOC (4%) 5 files
*.css79 LOC (<1%) 1 file
*.py79 LOC (<1%) 1 file
*.yaml58 LOC (<1%) 4 files
*.mjs37 LOC (<1%) 1 file
*.sql26 LOC (<1%) 1 file
*.js6 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[.].*".
  • 21 files match defined criteria (2,025 LOC, 21.5% vs. main code). All matches are in *.go files.


*.go2025 LOC (100%) 21 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".
    • files with paths like ".*/package[.]json".
  • 4 files match defined criteria (30 LOC, 0.3% vs. main code). All matches are in *.sh files.


*.sh30 LOC (100%) 4 files
Other Code
txt
mod
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]prettierignore".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]json".
    • files with paths like ".*/go[.]mod".
  • 18 files match defined criteria (1,186 LOC, 12.6% vs. main code):
    • 2 *.svg files (468 LOC)
    • 11 *.txt files (415 LOC)
    • 2 *.md files (124 LOC)
    • 1 *.mod files (94 LOC)
    • 2 *.json files (85 LOC)
  • " *.svg" is biggest, containing 39.46% of LOC.
  • " *.json" is smallest, containing 7.17% of LOC.


*.svg468 LOC (39%) 2 files
*.txt415 LOC (34%) 11 files
*.md124 LOC (10%) 2 files
*.mod94 LOC (7%) 1 file
*.json85 LOC (7%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 20:29