apache / shardingsphere
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
properties
proto
gitattributes
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.

main305680 LOC (48%) 6,200 files
test292476 LOC (46%) 6,252 files
generated0 LOC (0%) 0 files
build and deployment12300 LOC (1%) 321 files
other18702 LOC (2%) 194 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 ".*".
  • 6200 files match defined criteria (305,680 LOC, 100.0% vs. main code):
    • 5,050 *.java files (167,671 LOC)
    • 823 *.yaml files (74,994 LOC)
    • 264 *.g4 files (59,387 LOC)
    • 46 *.ftl files (2,160 LOC)
    • 15 *.xml files (1,313 LOC)
    • 2 *.proto files (155 LOC)
  • " *.java" is biggest, containing 54.85% of LOC.
  • " *.proto" is smallest, containing 0.05% of LOC.


*.java167671 LOC (54%) 5,050 files
*.yaml74994 LOC (24%) 823 files
*.g459387 LOC (19%) 264 files
*.ftl2160 LOC (<1%) 46 files
*.xml1313 LOC (<1%) 15 files
*.proto155 LOC (<1%) 2 files
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[-].*".
    • files with paths like ".*/e2e/.*".
  • 6252 files match defined criteria (292,476 LOC, 95.7% vs. main code):
    • 3,091 *.java files (140,863 LOC)
    • 2,589 *.xml files (110,964 LOC)
    • 342 *.yaml files (26,275 LOC)
    • 229 *.sql files (14,340 LOC)
    • 1 *.sh files (34 LOC)
  • " *.java" is biggest, containing 48.16% of LOC.
  • " *.sh" is smallest, containing 0.01% of LOC.


*.java140863 LOC (48%) 3,091 files
*.xml110964 LOC (37%) 2,589 files
*.yaml26275 LOC (8%) 342 files
*.sql14340 LOC (4%) 229 files
*.sh34 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 ".*[.]sh".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
  • 321 files match defined criteria (12,300 LOC, 4.0% vs. main code). All matches are in *.xml files.


*.xml12300 LOC (100%) 321 files
Other Code
txt
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/vendor/.*".
  • 194 files match defined criteria (18,702 LOC, 6.1% vs. main code):
    • 53 *.json files (9,308 LOC)
    • 53 *.ftl files (2,867 LOC)
    • 9 *.md files (2,374 LOC)
    • 22 *.txt files (1,733 LOC)
    • 34 *.java files (1,110 LOC)
    • 5 *.xml files (861 LOC)
    • 17 *.properties files (423 LOC)
    • 1 *.yaml files (26 LOC)
  • " *.json" is biggest, containing 49.77% of LOC.
  • " *.yaml" is smallest, containing 0.14% of LOC.


*.json9308 LOC (49%) 53 files
*.ftl2867 LOC (15%) 53 files
*.md2374 LOC (12%) 9 files
*.txt1733 LOC (9%) 22 files
*.java1110 LOC (5%) 34 files
*.xml861 LOC (4%) 5 files
*.properties423 LOC (2%) 17 files
*.yaml26 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 17:00