apache / shardingsphere-doc
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
xsd
webmanifest
txt
lua
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.

main2121658 LOC (24%) 23,166 files
test171578 LOC (1%) 2,833 files
generated6023702 LOC (70%) 5,313 files
build and deployment0 LOC (0%) 0 files
other266818 LOC (3%) 654 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
xsd
webmanifest
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 23166 files match defined criteria (2,121,658 LOC, 100.0% vs. main code):
    • 13,322 *.html files (1,104,006 LOC)
    • 7,971 *.xml files (568,731 LOC)
    • 1,479 *.css files (389,242 LOC)
    • 301 *.js files (55,201 LOC)
    • 89 *.xsd files (4,412 LOC)
    • 3 *.webmanifest files (42 LOC)
    • 1 *.yaml files (24 LOC)
  • " *.html" is biggest, containing 52.04% of LOC.
  • " *.yaml" is smallest, containing 0% of LOC.


*.html1104006 LOC (52%) 13,322 files
*.xml568731 LOC (26%) 7,971 files
*.css389242 LOC (18%) 1,479 files
*.js55201 LOC (2%) 301 files
*.xsd4412 LOC (<1%) 89 files
*.webmanifest42 LOC (<1%) 3 files
*.yaml24 LOC (<1%) 1 file
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/.*".
  • 2833 files match defined criteria (171,578 LOC, 8.1% vs. main code):
    • 2,501 *.html files (161,767 LOC)
    • 308 *.xml files (6,073 LOC)
    • 24 *.css files (3,738 LOC)
  • " *.html" is biggest, containing 94.28% of LOC.
  • " *.css" is smallest, containing 2.18% of LOC.


*.html161767 LOC (94%) 2,501 files
*.xml6073 LOC (3%) 308 files
*.css3738 LOC (2%) 24 files
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.](html|html|xhtml)" AND any line of content like "[ ]*[<]meta name[=]"generator" .*".
  • 5313 files match defined criteria (6,023,702 LOC, 283.9% vs. main code). All matches are in *.html files.


*.html6023702 LOC (100%) 5,313 files
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/vendor/.*".
    • files with paths like ".*/checkstyle.*".
  • 654 files match defined criteria (266,818 LOC, 12.6% vs. main code):
    • 578 *.svg files (258,337 LOC)
    • 69 *.html files (8,397 LOC)
    • 1 *.txt files (78 LOC)
    • 6 *.json files (6 LOC)
  • " *.svg" is biggest, containing 96.82% of LOC.
  • " *.json" is smallest, containing 0% of LOC.


*.svg258337 LOC (96%) 578 files
*.html8397 LOC (3%) 69 files
*.txt78 LOC (<1%) 1 file
*.json6 LOC (<1%) 6 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 18:52