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

main32639 LOC (26%) 252 files
test78090 LOC (64%) 165 files
generated1920 LOC (1%) 40 files
build and deployment42 LOC (<1%) 1 file
other8933 LOC (7%) 18 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
tpl
proto
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 252 files match defined criteria (32,639 LOC, 100.0% vs. main code):
    • 138 *.go files (13,798 LOC)
    • 35 *.vue files (8,866 LOC)
    • 49 *.yaml files (7,998 LOC)
    • 18 *.js files (1,213 LOC)
    • 3 *.tpl files (295 LOC)
    • 1 *.css files (217 LOC)
    • 5 *.yml files (152 LOC)
    • 2 *.proto files (86 LOC)
    • 1 *.html files (14 LOC)
  • " *.go" is biggest, containing 42.27% of LOC.
  • " *.html" is smallest, containing 0.04% of LOC.


*.go13798 LOC (42%) 138 files
*.vue8866 LOC (27%) 35 files
*.yaml7998 LOC (24%) 49 files
*.js1213 LOC (3%) 18 files
*.tpl295 LOC (<1%) 3 files
*.css217 LOC (<1%) 1 file
*.yml152 LOC (<1%) 5 files
*.proto86 LOC (<1%) 2 files
*.html14 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]ests/.*".
    • files with paths like ".*[.]spec[.]js".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*_test[.].*".
  • 165 files match defined criteria (78,090 LOC, 239.3% vs. main code):
    • 116 *.html files (68,568 LOC)
    • 36 *.go files (7,990 LOC)
    • 3 *.vue files (642 LOC)
    • 5 *.js files (467 LOC)
    • 4 *.css files (408 LOC)
    • 1 *.yaml files (15 LOC)
  • " *.html" is biggest, containing 87.81% of LOC.
  • " *.yaml" is smallest, containing 0.02% of LOC.


*.html68568 LOC (87%) 116 files
*.go7990 LOC (10%) 36 files
*.vue642 LOC (<1%) 3 files
*.js467 LOC (<1%) 5 files
*.css408 LOC (<1%) 4 files
*.yaml15 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 ".*/generated/.*".
    • files with paths like ".*_generated[.][a-z]+".
  • 40 files match defined criteria (1,920 LOC, 5.9% vs. main code). All matches are in *.go files.


*.go1920 LOC (100%) 40 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 ".*/package[.]json".
    • files with paths like ".*[.]sh".
  • 1 file matches defined criteria (42 LOC, 0.1% vs. main code). All matches are in *.sh files.


*.sh42 LOC (100%) 1 file
Other Code
mod
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*[.]txt".
  • 18 files match defined criteria (8,933 LOC, 27.4% vs. main code):
    • 6 *.json files (8,317 LOC)
    • 7 *.md files (304 LOC)
    • 1 *.mod files (274 LOC)
    • 4 *.txt files (38 LOC)
  • " *.json" is biggest, containing 93.1% of LOC.
  • " *.txt" is smallest, containing 0.43% of LOC.


*.json8317 LOC (93%) 6 files
*.md304 LOC (3%) 7 files
*.mod274 LOC (3%) 1 file
*.txt38 LOC (<1%) 4 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 21:11