apache / skywalking-banyandb
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
proto
mk
tpl
mod
gitattributes
editorconfig
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.

main54126 LOC (56%) 386 files
test33449 LOC (34%) 338 files
generated3127 LOC (3%) 1 file
build and deployment581 LOC (<1%) 15 files
other4637 LOC (4%) 20 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
mjs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 386 files match defined criteria (54,126 LOC, 100.0% vs. main code):
    • 304 *.go files (45,448 LOC)
    • 35 *.vue files (5,433 LOC)
    • 19 *.proto files (1,774 LOC)
    • 17 *.js files (855 LOC)
    • 3 *.scss files (359 LOC)
    • 2 *.css files (101 LOC)
    • 1 *.mjs files (63 LOC)
    • 1 *.toml files (43 LOC)
    • 3 *.yaml files (37 LOC)
    • 1 *.html files (13 LOC)
  • " *.go" is biggest, containing 83.97% of LOC.
  • " *.html" is smallest, containing 0.02% of LOC.


*.go45448 LOC (83%) 304 files
*.vue5433 LOC (10%) 35 files
*.proto1774 LOC (3%) 19 files
*.js855 LOC (1%) 17 files
*.scss359 LOC (<1%) 3 files
*.css101 LOC (<1%) 2 files
*.mjs63 LOC (<1%) 1 file
*.toml43 LOC (<1%) 1 file
*.yaml37 LOC (<1%) 3 files
*.html13 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
mk
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/[Tt]est/.*".
  • 338 files match defined criteria (33,449 LOC, 61.8% vs. main code):
    • 171 *.go files (27,698 LOC)
    • 158 *.yaml files (5,586 LOC)
    • 4 *.sh files (58 LOC)
    • 3 *.xml files (53 LOC)
    • 1 *.mk files (46 LOC)
    • 1 *.js files (8 LOC)
  • " *.go" is biggest, containing 82.81% of LOC.
  • " *.js" is smallest, containing 0.02% of LOC.


*.go27698 LOC (82%) 171 files
*.yaml5586 LOC (16%) 158 files
*.sh58 LOC (<1%) 4 files
*.xml53 LOC (<1%) 3 files
*.mk46 LOC (<1%) 1 file
*.js8 LOC (<1%) 1 file
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/package[-]lock[.]json".
  • 1 file matches defined criteria (3,127 LOC, 5.8% vs. main code). All matches are in *.json files.


*.json3127 LOC (100%) 1 file
Build and Deployment Code
Source code used to configure or support build and deployment process.
mk
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 ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]mk".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*/docker[-]compose[.]yaml".
  • 15 files match defined criteria (581 LOC, 1.1% vs. main code):
    • 13 *.mk files (424 LOC)
    • 2 *.sh files (157 LOC)
  • " *.mk" is biggest, containing 72.98% of LOC.
  • " *.sh" is smallest, containing 27.02% of LOC.


*.mk424 LOC (72%) 13 files
*.sh157 LOC (27%) 2 files
Other Code
mod
tpl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]prettierignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/go[.]mod".
  • 20 files match defined criteria (4,637 LOC, 8.6% vs. main code):
    • 6 *.json files (3,515 LOC)
    • 11 *.md files (875 LOC)
    • 1 *.mod files (200 LOC)
    • 1 *.svg files (34 LOC)
    • 1 *.tpl files (13 LOC)
  • " *.json" is biggest, containing 75.8% of LOC.
  • " *.tpl" is smallest, containing 0.28% of LOC.


*.json3515 LOC (75%) 6 files
*.md875 LOC (18%) 11 files
*.mod200 LOC (4%) 1 file
*.svg34 LOC (<1%) 1 file
*.tpl13 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 20:24