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
editorconfig
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.

main12462 LOC (13%) 446 files
test6134 LOC (6%) 94 files
generated3244 LOC (3%) 21 files
build and deployment29209 LOC (30%) 419 files
other44287 LOC (46%) 1,231 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 ".*".
  • 446 files match defined criteria (12,462 LOC, 100.0% vs. main code):
    • 176 *.java files (5,457 LOC)
    • 209 *.xml files (2,987 LOC)
    • 24 *.yaml files (1,696 LOC)
    • 11 *.html files (632 LOC)
    • 3 *.css files (583 LOC)
    • 4 *.ftl files (377 LOC)
    • 3 *.sql files (377 LOC)
    • 14 *.proto files (333 LOC)
    • 1 *.thrift files (11 LOC)
    • 1 *.jsp files (9 LOC)
  • " *.java" is biggest, containing 43.79% of LOC.
  • " *.jsp" is smallest, containing 0.07% of LOC.


*.java5457 LOC (43%) 176 files
*.xml2987 LOC (23%) 209 files
*.yaml1696 LOC (13%) 24 files
*.html632 LOC (5%) 11 files
*.css583 LOC (4%) 3 files
*.ftl377 LOC (3%) 4 files
*.sql377 LOC (3%) 3 files
*.proto333 LOC (2%) 14 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.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[-]test[-].*".
  • 94 files match defined criteria (6,134 LOC, 49.2% vs. main code):
    • 57 *.java files (4,257 LOC)
    • 24 *.sh files (1,547 LOC)
    • 13 *.xml files (330 LOC)
  • " *.java" is biggest, containing 69.4% of LOC.
  • " *.xml" is smallest, containing 5.38% of LOC.


*.java4257 LOC (69%) 57 files
*.sh1547 LOC (25%) 24 files
*.xml330 LOC (5%) 13 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[!].*".
  • 21 files match defined criteria (3,244 LOC, 26.0% vs. main code). All matches are in *.java files.


*.java3244 LOC (100%) 21 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 ".*/pom[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
  • 419 files match defined criteria (29,209 LOC, 234.4% vs. main code):
    • 417 *.xml files (29,021 LOC)
    • 2 *.sh files (188 LOC)
  • " *.xml" is biggest, containing 99.36% of LOC.
  • " *.sh" is smallest, containing 0.64% of LOC.


*.xml29021 LOC (99%) 417 files
*.sh188 LOC (<1%) 2 files
Other Code
properties
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
  • 1231 files match defined criteria (44,287 LOC, 355.4% vs. main code):
    • 1,034 *.java files (37,776 LOC)
    • 95 *.md files (4,195 LOC)
    • 75 *.properties files (1,601 LOC)
    • 14 *.svg files (460 LOC)
    • 2 *.json files (147 LOC)
    • 8 *.scala files (78 LOC)
    • 2 *.xml files (28 LOC)
    • 1 *.txt files (2 LOC)
  • " *.java" is biggest, containing 85.3% of LOC.
  • " *.txt" is smallest, containing 0% of LOC.


*.java37776 LOC (85%) 1,034 files
*.md4195 LOC (9%) 95 files
*.properties1601 LOC (3%) 75 files
*.svg460 LOC (1%) 14 files
*.json147 LOC (<1%) 2 files
*.scala78 LOC (<1%) 8 files
*.xml28 LOC (<1%) 2 files
*.txt2 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 17:34