apache / dubbo-kubernetes
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
proto
tpl
txt
mod
gitattributes
editorconfig
eslintignore
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.

main138018 LOC (57%) 1,124 files
test76490 LOC (31%) 222 files
generated5614 LOC (2%) 9 files
build and deployment372 LOC (<1%) 8 files
other20361 LOC (8%) 51 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
tpl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1124 files match defined criteria (138,018 LOC, 100.0% vs. main code):
    • 603 *.go files (60,241 LOC)
    • 277 *.yaml files (40,710 LOC)
    • 127 *.vue files (21,252 LOC)
    • 29 *.proto files (8,049 LOC)
    • 53 *.ts files (3,745 LOC)
    • 13 *.tpl files (2,584 LOC)
    • 17 *.js files (1,167 LOC)
    • 1 *.css files (217 LOC)
    • 3 *.html files (33 LOC)
    • 1 *.dockerignore files (20 LOC)
  • " *.go" is biggest, containing 43.65% of LOC.
  • " *.dockerignore" is smallest, containing 0.01% of LOC.


*.go60241 LOC (43%) 603 files
*.yaml40710 LOC (29%) 277 files
*.vue21252 LOC (15%) 127 files
*.proto8049 LOC (5%) 29 files
*.ts3745 LOC (2%) 53 files
*.tpl2584 LOC (1%) 13 files
*.js1167 LOC (<1%) 17 files
*.css217 LOC (<1%) 1 file
*.html33 LOC (<1%) 3 files
*.dockerignore20 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]est/.*".
    • files with paths like ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[.]spec[.]js".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/testing[.].*".
    • files with paths like ".*_mock[.][a-zA-Z0-9_\-]+".
    • files with paths like ".*/e2e/.*".
    • files with paths like ".*/vitest[.].*".
    • files with paths like ".*/test[.].*".
  • 222 files match defined criteria (76,490 LOC, 55.4% vs. main code):
    • 116 *.html files (68,568 LOC)
    • 73 *.go files (5,259 LOC)
    • 16 *.yaml files (1,057 LOC)
    • 5 *.vue files (664 LOC)
    • 6 *.js files (515 LOC)
    • 4 *.css files (408 LOC)
    • 2 *.ts files (19 LOC)
  • " *.html" is biggest, containing 89.64% of LOC.
  • " *.ts" is smallest, containing 0.02% of LOC.


*.html68568 LOC (89%) 116 files
*.go5259 LOC (6%) 73 files
*.yaml1057 LOC (1%) 16 files
*.vue664 LOC (<1%) 5 files
*.js515 LOC (<1%) 6 files
*.css408 LOC (<1%) 4 files
*.ts19 LOC (<1%) 2 files
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 ".*_generated[.][a-z]+".
    • files with paths like ".*/package[-]lock[.]json".
    • files with any line of content like "//[ ]*Generated by .*".
  • 9 files match defined criteria (5,614 LOC, 4.1% vs. main code):
    • 8 *.go files (5,611 LOC)
    • 1 *.json files (3 LOC)
  • " *.go" is biggest, containing 99.95% of LOC.
  • " *.json" is smallest, containing 0.05% of LOC.


*.go5611 LOC (99%) 8 files
*.json3 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 ".*/pom[.]xml".
    • 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 ".*/[.]gitattributes".
  • 8 files match defined criteria (372 LOC, 0.3% vs. main code):
    • 7 *.sh files (264 LOC)
    • 1 *.xml files (108 LOC)
  • " *.sh" is biggest, containing 70.97% of LOC.
  • " *.xml" is smallest, containing 29.03% of LOC.


*.sh264 LOC (70%) 7 files
*.xml108 LOC (29%) 1 file
Other Code
mod
txt
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*[.]svg".
  • 51 files match defined criteria (20,361 LOC, 14.8% vs. main code):
    • 21 *.json files (18,552 LOC)
    • 11 *.md files (1,140 LOC)
    • 2 *.mod files (379 LOC)
    • 8 *.java files (122 LOC)
    • 6 *.txt files (120 LOC)
    • 1 *.go files (29 LOC)
    • 1 *.properties files (12 LOC)
    • 1 *.svg files (7 LOC)
  • " *.json" is biggest, containing 91.12% of LOC.
  • " *.svg" is smallest, containing 0.03% of LOC.


*.json18552 LOC (91%) 21 files
*.md1140 LOC (5%) 11 files
*.mod379 LOC (1%) 2 files
*.java122 LOC (<1%) 8 files
*.txt120 LOC (<1%) 6 files
*.go29 LOC (<1%) 1 file
*.properties12 LOC (<1%) 1 file
*.svg7 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 17:37