apache / dubbo-go-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
properties
txt
mk
in
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.

main51411 LOC (52%) 636 files
test4442 LOC (4%) 144 files
generated17914 LOC (18%) 53 files
build and deployment2503 LOC (2%) 51 files
other20807 LOC (21%) 223 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 636 files match defined criteria (51,411 LOC, 100.0% vs. main code):
    • 437 *.go files (42,902 LOC)
    • 86 *.proto files (3,284 LOC)
    • 61 *.java files (1,558 LOC)
    • 17 *.yaml files (1,328 LOC)
    • 15 *.html files (965 LOC)
    • 5 *.css files (870 LOC)
    • 3 *.js files (297 LOC)
    • 10 *.xml files (134 LOC)
    • 1 *.py files (54 LOC)
    • 1 *.in files (19 LOC)
  • " *.go" is biggest, containing 83.45% of LOC.
  • " *.in" is smallest, containing 0.04% of LOC.


*.go42902 LOC (83%) 437 files
*.proto3284 LOC (6%) 86 files
*.java1558 LOC (3%) 61 files
*.yaml1328 LOC (2%) 17 files
*.html965 LOC (1%) 15 files
*.css870 LOC (1%) 5 files
*.js297 LOC (<1%) 3 files
*.xml134 LOC (<1%) 10 files
*.py54 LOC (<1%) 1 file
*.in19 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 ".*_test[.].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/[Tt]ests/.*".
  • 144 files match defined criteria (4,442 LOC, 8.6% vs. main code):
    • 138 *.go files (4,322 LOC)
    • 2 *.sh files (96 LOC)
    • 4 *.yaml files (24 LOC)
  • " *.go" is biggest, containing 97.3% of LOC.
  • " *.yaml" is smallest, containing 0.54% of LOC.


*.go4322 LOC (97%) 138 files
*.sh96 LOC (2%) 2 files
*.yaml24 LOC (<1%) 4 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/.*".
    • files with any line of content like "//[ ]*Generated by .*".
    • files with paths like ".*[.](py|java|h|cc|cpp|m|rb|php)" AND any line of content like ".*Generated by the protocol buffer compiler[.][ ]+DO NOT EDIT[!].*".
  • 53 files match defined criteria (17,914 LOC, 34.8% vs. main code). All matches are in *.java files.


*.java17914 LOC (100%) 53 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 ".*/pom[.]xml".
    • files with paths like ".*[.]mk".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 51 files match defined criteria (2,503 LOC, 4.9% vs. main code):
    • 21 *.xml files (2,235 LOC)
    • 27 *.sh files (208 LOC)
    • 3 *.mk files (60 LOC)
  • " *.xml" is biggest, containing 89.29% of LOC.
  • " *.mk" is smallest, containing 2.4% of LOC.


*.xml2235 LOC (89%) 21 files
*.sh208 LOC (8%) 27 files
*.mk60 LOC (2%) 3 files
Other Code
mod
properties
txt
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 ".*/[Ss]amples/.*".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]svg".
  • 223 files match defined criteria (20,807 LOC, 40.5% vs. main code):
    • 67 *.java files (11,685 LOC)
    • 103 *.md files (5,813 LOC)
    • 17 *.mod files (2,261 LOC)
    • 14 *.svg files (460 LOC)
    • 16 *.properties files (364 LOC)
    • 2 *.json files (147 LOC)
    • 4 *.txt files (77 LOC)
  • " *.java" is biggest, containing 56.16% of LOC.
  • " *.txt" is smallest, containing 0.37% of LOC.


*.java11685 LOC (56%) 67 files
*.md5813 LOC (27%) 103 files
*.mod2261 LOC (10%) 17 files
*.svg460 LOC (2%) 14 files
*.properties364 LOC (1%) 16 files
*.json147 LOC (<1%) 2 files
*.txt77 LOC (<1%) 4 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 20:20