apache / dubbo-go-pixiu
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
mk
proto
cfg
tpl
mod
gitmodules
gitattributes
ini
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.

main184675 LOC (46%) 1,090 files
test185680 LOC (46%) 929 files
generated300 LOC (<1%) 2 files
build and deployment2215 LOC (<1%) 36 files
other28409 LOC (7%) 240 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 ".*".
  • 1090 files match defined criteria (184,675 LOC, 100.0% vs. main code):
    • 936 *.go files (144,376 LOC)
    • 141 *.yaml files (38,690 LOC)
    • 3 *.proto files (958 LOC)
    • 5 *.yml files (353 LOC)
    • 3 *.tpl files (240 LOC)
    • 1 *.py files (46 LOC)
    • 1 *.rb files (12 LOC)
  • " *.go" is biggest, containing 78.18% of LOC.
  • " *.rb" is smallest, containing 0.01% of LOC.


*.go144376 LOC (78%) 936 files
*.yaml38690 LOC (20%) 141 files
*.proto958 LOC (<1%) 3 files
*.yml353 LOC (<1%) 5 files
*.tpl240 LOC (<1%) 3 files
*.py46 LOC (<1%) 1 file
*.rb12 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
mk
proto
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*/test_.*".
  • 929 files match defined criteria (185,680 LOC, 100.5% vs. main code):
    • 856 *.go files (183,809 LOC)
    • 58 *.yaml files (1,333 LOC)
    • 10 *.sh files (309 LOC)
    • 1 *.mk files (102 LOC)
    • 2 *.proto files (101 LOC)
    • 1 *.java files (13 LOC)
    • 1 *.xml files (13 LOC)
  • " *.go" is biggest, containing 98.99% of LOC.
  • " *.xml" is smallest, containing 0.01% of LOC.


*.go183809 LOC (98%) 856 files
*.yaml1333 LOC (<1%) 58 files
*.sh309 LOC (<1%) 10 files
*.mk102 LOC (<1%) 1 file
*.proto101 LOC (<1%) 2 files
*.java13 LOC (<1%) 1 file
*.xml13 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 ".*/gen/.*[.]go".
    • files with any line of content like "// This file was generated .*".
  • 2 files match defined criteria (300 LOC, 0.2% vs. main code). All matches are in *.go files.


*.go300 LOC (100%) 2 files
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 ".*[.]sh".
    • files with paths like ".*[.]mk".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]gradle".
    • files with paths like ".*/[.]gitattributes".
  • 36 files match defined criteria (2,215 LOC, 1.2% vs. main code):
    • 28 *.sh files (1,155 LOC)
    • 8 *.mk files (1,060 LOC)
  • " *.sh" is biggest, containing 52.14% of LOC.
  • " *.mk" is smallest, containing 47.86% of LOC.


*.sh1155 LOC (52%) 28 files
*.mk1060 LOC (47%) 8 files
Other Code
txt
mod
ini
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*[.]ini".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]svg".
  • 240 files match defined criteria (28,409 LOC, 15.4% vs. main code):
    • 14 *.json files (12,532 LOC)
    • 87 *.yaml files (6,576 LOC)
    • 62 *.md files (3,542 LOC)
    • 32 *.txt files (2,405 LOC)
    • 7 *.go files (704 LOC)
    • 1 *.css files (581 LOC)
    • 11 *.sh files (525 LOC)
    • 4 *.py files (408 LOC)
    • 1 *.mod files (322 LOC)
    • 2 *.js files (225 LOC)
    • 6 *.java files (190 LOC)
    • 2 *.html files (147 LOC)
    • 1 *.rb files (112 LOC)
    • 1 *.ini files (42 LOC)
    • 4 *.gradle files (41 LOC)
    • 3 *.xml files (30 LOC)
    • 1 *.cfg files (16 LOC)
    • 1 *.sql files (11 LOC)
  • " *.json" is biggest, containing 44.11% of LOC.
  • " *.sql" is smallest, containing 0.04% of LOC.


*.json12532 LOC (44%) 14 files
*.yaml6576 LOC (23%) 87 files
*.md3542 LOC (12%) 62 files
*.txt2405 LOC (8%) 32 files
*.go704 LOC (2%) 7 files
*.css581 LOC (2%) 1 file
*.sh525 LOC (1%) 11 files
*.py408 LOC (1%) 4 files
*.mod322 LOC (1%) 1 file
*.js225 LOC (<1%) 2 files
*.java190 LOC (<1%) 6 files
*.html147 LOC (<1%) 2 files
*.rb112 LOC (<1%) 1 file
*.ini42 LOC (<1%) 1 file
*.gradle41 LOC (<1%) 4 files
*.xml30 LOC (<1%) 3 files
*.cfg16 LOC (<1%) 1 file
*.sql11 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 23:32