apache / dubbo-spi-extensions
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
editorconfig
cmd
gitattributes
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.

main40474 LOC (54%) 665 files
test22078 LOC (29%) 256 files
generated2737 LOC (3%) 1 file
build and deployment5580 LOC (7%) 100 files
other3616 LOC (4%) 70 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 ".*".
  • 665 files match defined criteria (40,474 LOC, 100.0% vs. main code):
    • 656 *.java files (39,970 LOC)
    • 1 *.rs files (256 LOC)
    • 3 *.proto files (133 LOC)
    • 4 *.xml files (91 LOC)
    • 1 *.toml files (24 LOC)
  • " *.java" is biggest, containing 98.75% of LOC.
  • " *.toml" is smallest, containing 0.06% of LOC.


*.java39970 LOC (98%) 656 files
*.rs256 LOC (<1%) 1 file
*.proto133 LOC (<1%) 3 files
*.xml91 LOC (<1%) 4 files
*.toml24 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/.*".
  • 256 files match defined criteria (22,078 LOC, 54.5% vs. main code):
    • 247 *.java files (21,897 LOC)
    • 3 *.yaml files (73 LOC)
    • 3 *.xml files (48 LOC)
    • 1 *.proto files (45 LOC)
    • 2 *.thrift files (15 LOC)
  • " *.java" is biggest, containing 99.18% of LOC.
  • " *.thrift" is smallest, containing 0.07% of LOC.


*.java21897 LOC (99%) 247 files
*.yaml73 LOC (<1%) 3 files
*.xml48 LOC (<1%) 3 files
*.proto45 LOC (<1%) 1 file
*.thrift15 LOC (<1%) 2 files
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with any line of content like "//[ ]*Generated by .*".
  • 1 file matches defined criteria (2,737 LOC, 6.8% vs. main code). All matches are in *.java files.


*.java2737 LOC (100%) 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 ".*/[.]gitattributes".
  • 100 files match defined criteria (5,580 LOC, 13.8% vs. main code). All matches are in *.xml files.


*.xml5580 LOC (100%) 100 files
Other Code
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 ".*/[.]gitignore".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*[.]txt".
  • 70 files match defined criteria (3,616 LOC, 8.9% vs. main code):
    • 27 *.md files (1,729 LOC)
    • 30 *.java files (1,142 LOC)
    • 2 *.json files (645 LOC)
    • 4 *.xml files (62 LOC)
    • 6 *.properties files (22 LOC)
    • 1 *.txt files (16 LOC)
  • " *.md" is biggest, containing 47.82% of LOC.
  • " *.txt" is smallest, containing 0.44% of LOC.


*.md1729 LOC (47%) 27 files
*.java1142 LOC (31%) 30 files
*.json645 LOC (17%) 2 files
*.xml62 LOC (1%) 4 files
*.properties22 LOC (<1%) 6 files
*.txt16 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 20:13