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
gitattributes
editorconfig
txt
cmd
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.

main18692 LOC (40%) 287 files
test19050 LOC (41%) 216 files
generated2737 LOC (5%) 1 file
build and deployment4036 LOC (8%) 73 files
other1746 LOC (3%) 55 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 ".*".
  • 287 files match defined criteria (18,692 LOC, 100.0% vs. main code):
    • 278 *.java files (18,474 LOC)
    • 4 *.xml files (91 LOC)
    • 2 *.proto files (80 LOC)
    • 3 *.yml files (47 LOC)
  • " *.java" is biggest, containing 98.83% of LOC.
  • " *.yml" is smallest, containing 0.25% of LOC.


*.java18474 LOC (98%) 278 files
*.xml91 LOC (<1%) 4 files
*.proto80 LOC (<1%) 2 files
*.yml47 LOC (<1%) 3 files
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[-].*".
  • 216 files match defined criteria (19,050 LOC, 101.9% vs. main code):
    • 161 *.java files (16,659 LOC)
    • 29 *.xml files (1,414 LOC)
    • 13 *.sh files (742 LOC)
    • 2 *.proto files (113 LOC)
    • 9 *.yml files (107 LOC)
    • 2 *.thrift files (15 LOC)
  • " *.java" is biggest, containing 87.45% of LOC.
  • " *.thrift" is smallest, containing 0.08% of LOC.


*.java16659 LOC (87%) 161 files
*.xml1414 LOC (7%) 29 files
*.sh742 LOC (3%) 13 files
*.proto113 LOC (<1%) 2 files
*.yml107 LOC (<1%) 9 files
*.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, 14.6% 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
  • 73 files match defined criteria (4,036 LOC, 21.6% vs. main code). All matches are in *.xml files.


*.xml4036 LOC (100%) 73 files
Other Code
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
  • 55 files match defined criteria (1,746 LOC, 9.3% vs. main code):
    • 30 *.java files (1,142 LOC)
    • 11 *.md files (353 LOC)
    • 10 *.properties files (185 LOC)
    • 4 *.xml files (66 LOC)
  • " *.java" is biggest, containing 65.41% of LOC.
  • " *.xml" is smallest, containing 3.78% of LOC.


*.java1142 LOC (65%) 30 files
*.md353 LOC (20%) 11 files
*.properties185 LOC (10%) 10 files
*.xml66 LOC (3%) 4 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-11 01:46