apache / dubbo-go-pixiu-samples
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
mod
tpl
properties
txt
editorconfig
gitmodules
eslintignore
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.

main13649 LOC (82%) 174 files
test1509 LOC (9%) 30 files
generated0 LOC (0%) 0 files
build and deployment491 LOC (2%) 20 files
other989 LOC (5%) 22 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 ".*".
  • 174 files match defined criteria (13,649 LOC, 100.0% vs. main code):
    • 93 *.go files (9,754 LOC)
    • 67 *.yaml files (3,099 LOC)
    • 7 *.proto files (474 LOC)
    • 3 *.tpl files (210 LOC)
    • 4 *.java files (112 LOC)
  • " *.go" is biggest, containing 71.46% of LOC.
  • " *.java" is smallest, containing 0.82% of LOC.


*.go9754 LOC (71%) 93 files
*.yaml3099 LOC (22%) 67 files
*.proto474 LOC (3%) 7 files
*.tpl210 LOC (1%) 3 files
*.java112 LOC (<1%) 4 files
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[.].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/test[.].*".
  • 30 files match defined criteria (1,509 LOC, 11.1% vs. main code):
    • 28 *.go files (1,467 LOC)
    • 2 *.sh files (42 LOC)
  • " *.go" is biggest, containing 97.22% of LOC.
  • " *.sh" is smallest, containing 2.78% of LOC.


*.go1467 LOC (97%) 28 files
*.sh42 LOC (2%) 2 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 ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/pnpm.*[.]ya?ml".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*/pom[.]xml".
  • 20 files match defined criteria (491 LOC, 3.6% vs. main code):
    • 4 *.xml files (322 LOC)
    • 16 *.sh files (169 LOC)
  • " *.xml" is biggest, containing 65.58% of LOC.
  • " *.sh" is smallest, containing 34.42% of LOC.


*.xml322 LOC (65%) 4 files
*.sh169 LOC (34%) 16 files
Other Code
mod
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]prettierignore".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]properties".
  • 22 files match defined criteria (989 LOC, 7.2% vs. main code):
    • 14 *.md files (574 LOC)
    • 4 *.mod files (306 LOC)
    • 2 *.json files (67 LOC)
    • 2 *.properties files (42 LOC)
  • " *.md" is biggest, containing 58.04% of LOC.
  • " *.properties" is smallest, containing 4.25% of LOC.


*.md574 LOC (58%) 14 files
*.mod306 LOC (30%) 4 files
*.json67 LOC (6%) 2 files
*.properties42 LOC (4%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 20:40