apache / dubbo-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
properties
proto
cmd
txt
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.

main17973 LOC (15%) 576 files
test11812 LOC (10%) 160 files
generated0 LOC (0%) 0 files
build and deployment28731 LOC (24%) 375 files
other57324 LOC (49%) 1,701 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 576 files match defined criteria (17,973 LOC, 100.0% vs. main code):
    • 270 *.yml files (9,798 LOC)
    • 96 *.java files (3,796 LOC)
    • 169 *.xml files (2,614 LOC)
    • 18 *.proto files (709 LOC)
    • 5 *.sql files (422 LOC)
    • 4 *.ftl files (377 LOC)
    • 2 *.html files (126 LOC)
    • 10 *.yaml files (111 LOC)
    • 1 *.thrift files (11 LOC)
    • 1 *.jsp files (9 LOC)
  • " *.yml" is biggest, containing 54.52% of LOC.
  • " *.jsp" is smallest, containing 0.05% of LOC.


*.yml9798 LOC (54%) 270 files
*.java3796 LOC (21%) 96 files
*.xml2614 LOC (14%) 169 files
*.proto709 LOC (3%) 18 files
*.sql422 LOC (2%) 5 files
*.ftl377 LOC (2%) 4 files
*.html126 LOC (<1%) 2 files
*.yaml111 LOC (<1%) 10 files
*.thrift11 LOC (<1%) 1 file
*.jsp9 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
proto
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[-]test[-].*".
  • 160 files match defined criteria (11,812 LOC, 65.7% vs. main code):
    • 69 *.java files (7,290 LOC)
    • 50 *.xml files (2,968 LOC)
    • 16 *.sh files (836 LOC)
    • 24 *.yml files (686 LOC)
    • 1 *.proto files (32 LOC)
  • " *.java" is biggest, containing 61.72% of LOC.
  • " *.proto" is smallest, containing 0.27% of LOC.


*.java7290 LOC (61%) 69 files
*.xml2968 LOC (25%) 50 files
*.sh836 LOC (7%) 16 files
*.yml686 LOC (5%) 24 files
*.proto32 LOC (<1%) 1 file
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 ".*/pom[.]xml".
    • files with paths like ".*/docker[-]compose[.]yml".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 375 files match defined criteria (28,731 LOC, 159.9% vs. main code):
    • 371 *.xml files (28,506 LOC)
    • 1 *.sh files (168 LOC)
    • 3 *.yml files (57 LOC)
  • " *.xml" is biggest, containing 99.22% of LOC.
  • " *.yml" is smallest, containing 0.2% of LOC.


*.xml28506 LOC (99%) 371 files
*.sh168 LOC (<1%) 1 file
*.yml57 LOC (<1%) 3 files
Other Code
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*/checkstyle[.]xml".
  • 1701 files match defined criteria (57,324 LOC, 318.9% vs. main code):
    • 1,327 *.java files (46,941 LOC)
    • 285 *.properties files (6,143 LOC)
    • 78 *.md files (3,430 LOC)
    • 1 *.json files (704 LOC)
    • 8 *.scala files (78 LOC)
    • 2 *.xml files (28 LOC)
  • " *.java" is biggest, containing 81.89% of LOC.
  • " *.xml" is smallest, containing 0.05% of LOC.


*.java46941 LOC (81%) 1,327 files
*.properties6143 LOC (10%) 285 files
*.md3430 LOC (5%) 78 files
*.json704 LOC (1%) 1 file
*.scala78 LOC (<1%) 8 files
*.xml28 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 21:15