apache / shenyu
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
txt
http
properties
proto
lua
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.

main128763 LOC (55%) 1,756 files
test74774 LOC (32%) 1,189 files
generated24 LOC (<1%) 3 files
build and deployment12726 LOC (5%) 325 files
other14700 LOC (6%) 322 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
http
proto
lua
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1756 files match defined criteria (128,763 LOC, 100.0% vs. main code):
    • 1,631 *.java files (99,992 LOC)
    • 32 *.sql files (17,585 LOC)
    • 63 *.xml files (9,010 LOC)
    • 14 *.http files (1,022 LOC)
    • 2 *.html files (684 LOC)
    • 4 *.yaml files (158 LOC)
    • 5 *.proto files (156 LOC)
    • 4 *.lua files (90 LOC)
    • 1 *.py files (66 LOC)
  • " *.java" is biggest, containing 77.66% of LOC.
  • " *.py" is smallest, containing 0.05% of LOC.


*.java99992 LOC (77%) 1,631 files
*.sql17585 LOC (13%) 32 files
*.xml9010 LOC (6%) 63 files
*.http1022 LOC (<1%) 14 files
*.html684 LOC (<1%) 2 files
*.yaml158 LOC (<1%) 4 files
*.proto156 LOC (<1%) 5 files
*.lua90 LOC (<1%) 4 files
*.py66 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
http
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*/e2e/.*".
  • 1189 files match defined criteria (74,774 LOC, 58.1% vs. main code):
    • 1,088 *.java files (68,296 LOC)
    • 27 *.xml files (2,638 LOC)
    • 27 *.http files (2,492 LOC)
    • 13 *.yaml files (696 LOC)
    • 24 *.sh files (326 LOC)
    • 5 *.rs files (206 LOC)
    • 5 *.toml files (120 LOC)
  • " *.java" is biggest, containing 91.34% of LOC.
  • " *.toml" is smallest, containing 0.16% of LOC.


*.java68296 LOC (91%) 1,088 files
*.xml2638 LOC (3%) 27 files
*.http2492 LOC (3%) 27 files
*.yaml696 LOC (<1%) 13 files
*.sh326 LOC (<1%) 24 files
*.rs206 LOC (<1%) 5 files
*.toml120 LOC (<1%) 5 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 "// This file was generated .*".
  • 3 files match defined criteria (24 LOC, 0.0% vs. main code). All matches are in *.java files.


*.java24 LOC (100%) 3 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".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/docker[-]compose[.]yaml".
  • 325 files match defined criteria (12,726 LOC, 9.9% vs. main code):
    • 277 *.xml files (11,299 LOC)
    • 47 *.sh files (1,397 LOC)
    • 1 *.yaml files (30 LOC)
  • " *.xml" is biggest, containing 88.79% of LOC.
  • " *.yaml" is smallest, containing 0.24% of LOC.


*.xml11299 LOC (88%) 277 files
*.sh1397 LOC (10%) 47 files
*.yaml30 LOC (<1%) 1 file
Other Code
txt
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]svg".
  • 322 files match defined criteria (14,700 LOC, 11.4% vs. main code):
    • 121 *.txt files (7,536 LOC)
    • 177 *.java files (5,652 LOC)
    • 18 *.md files (1,323 LOC)
    • 5 *.properties files (101 LOC)
    • 1 *.json files (88 LOC)
  • " *.txt" is biggest, containing 51.27% of LOC.
  • " *.json" is smallest, containing 0.6% of LOC.


*.txt7536 LOC (51%) 121 files
*.java5652 LOC (38%) 177 files
*.md1323 LOC (9%) 18 files
*.properties101 LOC (<1%) 5 files
*.json88 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 17:38