apache / dubbo
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
txt
xsd
cmd
gitattributes
editorconfig
flex
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.

main188489 LOC (58%) 2,341 files
test114535 LOC (35%) 1,701 files
generated0 LOC (0%) 0 files
build and deployment11997 LOC (3%) 108 files
other6531 LOC (2%) 111 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
cmd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 2341 files match defined criteria (188,489 LOC, 100.0% vs. main code):
    • 2,315 *.java files (186,896 LOC)
    • 9 *.proto files (707 LOC)
    • 4 *.mustache files (521 LOC)
    • 10 *.xml files (189 LOC)
    • 1 *.cmd files (107 LOC)
    • 2 *.html files (69 LOC)
  • " *.java" is biggest, containing 99.15% of LOC.
  • " *.html" is smallest, containing 0.04% of LOC.


*.java186896 LOC (99%) 2,315 files
*.proto707 LOC (<1%) 9 files
*.mustache521 LOC (<1%) 4 files
*.xml189 LOC (<1%) 10 files
*.cmd107 LOC (<1%) 1 file
*.html69 LOC (<1%) 2 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
flex
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[-]test[-].*".
  • 1701 files match defined criteria (114,535 LOC, 60.8% vs. main code):
    • 1,556 *.java files (111,152 LOC)
    • 130 *.xml files (2,275 LOC)
    • 9 *.groovy files (960 LOC)
    • 5 *.yaml files (91 LOC)
    • 1 *.flex files (57 LOC)
  • " *.java" is biggest, containing 97.05% of LOC.
  • " *.flex" is smallest, containing 0.05% of LOC.


*.java111152 LOC (97%) 1,556 files
*.xml2275 LOC (1%) 130 files
*.groovy960 LOC (<1%) 9 files
*.yaml91 LOC (<1%) 5 files
*.flex57 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/[.]gitattributes".
  • 108 files match defined criteria (11,997 LOC, 6.4% vs. main code):
    • 107 *.xml files (11,916 LOC)
    • 1 *.sh files (81 LOC)
  • " *.xml" is biggest, containing 99.32% of LOC.
  • " *.sh" is smallest, containing 0.68% of LOC.


*.xml11916 LOC (99%) 107 files
*.sh81 LOC (<1%) 1 file
Other Code
xsd
properties
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/resources/.*[.]xsd".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
  • 111 files match defined criteria (6,531 LOC, 3.5% vs. main code):
    • 2 *.xsd files (3,949 LOC)
    • 12 *.md files (1,363 LOC)
    • 35 *.java files (644 LOC)
    • 55 *.properties files (437 LOC)
    • 2 *.json files (88 LOC)
    • 3 *.xml files (48 LOC)
    • 2 *.txt files (2 LOC)
  • " *.xsd" is biggest, containing 60.47% of LOC.
  • " *.txt" is smallest, containing 0.03% of LOC.


*.xsd3949 LOC (60%) 2 files
*.md1363 LOC (20%) 12 files
*.java644 LOC (9%) 35 files
*.properties437 LOC (6%) 55 files
*.json88 LOC (1%) 2 files
*.xml48 LOC (<1%) 3 files
*.txt2 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:29