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.

main14458 LOC (83%) 209 files
test1431 LOC (8%) 29 files
generated0 LOC (0%) 0 files
build and deployment663 LOC (3%) 39 files
other827 LOC (4%) 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 ".*".
  • 209 files match defined criteria (14,458 LOC, 100.0% vs. main code):
    • 96 *.go files (9,895 LOC)
    • 66 *.yaml files (3,077 LOC)
    • 33 *.yml files (690 LOC)
    • 7 *.proto files (474 LOC)
    • 3 *.tpl files (210 LOC)
    • 4 *.java files (112 LOC)
  • " *.go" is biggest, containing 68.44% of LOC.
  • " *.java" is smallest, containing 0.77% of LOC.


*.go9895 LOC (68%) 96 files
*.yaml3077 LOC (21%) 66 files
*.yml690 LOC (4%) 33 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/.*".
  • 29 files match defined criteria (1,431 LOC, 9.9% vs. main code):
    • 27 *.go files (1,389 LOC)
    • 2 *.sh files (42 LOC)
  • " *.go" is biggest, containing 97.06% of LOC.
  • " *.sh" is smallest, containing 2.94% of LOC.


*.go1389 LOC (97%) 27 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 ".*/docker[-]compose[.]yml".
    • files with paths like ".*/pom[.]xml".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/pnpm.*[.]ya?ml".
    • files with paths like ".*/package[.]json".
  • 39 files match defined criteria (663 LOC, 4.6% vs. main code):
    • 4 *.xml files (322 LOC)
    • 19 *.yml files (178 LOC)
    • 16 *.sh files (163 LOC)
  • " *.xml" is biggest, containing 48.57% of LOC.
  • " *.sh" is smallest, containing 24.59% of LOC.


*.xml322 LOC (48%) 4 files
*.yml178 LOC (26%) 19 files
*.sh163 LOC (24%) 16 files
Other Code
mod
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]prettierignore".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*[.]txt".
  • 22 files match defined criteria (827 LOC, 5.7% vs. main code):
    • 14 *.md files (548 LOC)
    • 4 *.mod files (170 LOC)
    • 2 *.json files (67 LOC)
    • 2 *.properties files (42 LOC)
  • " *.md" is biggest, containing 66.26% of LOC.
  • " *.properties" is smallest, containing 5.08% of LOC.


*.md548 LOC (66%) 14 files
*.mod170 LOC (20%) 4 files
*.json67 LOC (8%) 2 files
*.properties42 LOC (5%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-11 02:33