apache / shardingsphere-benchmark
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
editorconfig
babelrc
txt
eslintignore
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.

main12144 LOC (77%) 202 files
test160 LOC (1%) 5 files
generated0 LOC (0%) 0 files
build and deployment1378 LOC (8%) 49 files
other2003 LOC (12%) 17 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 202 files match defined criteria (12,144 LOC, 100.0% vs. main code):
    • 118 *.java files (7,191 LOC)
    • 42 *.yaml files (3,169 LOC)
    • 18 *.js files (645 LOC)
    • 5 *.vue files (433 LOC)
    • 13 *.html files (354 LOC)
    • 4 *.py files (321 LOC)
    • 1 *.css files (26 LOC)
    • 1 *.sql files (5 LOC)
  • " *.java" is biggest, containing 59.21% of LOC.
  • " *.sql" is smallest, containing 0.04% of LOC.


*.java7191 LOC (59%) 118 files
*.yaml3169 LOC (26%) 42 files
*.js645 LOC (5%) 18 files
*.vue433 LOC (3%) 5 files
*.html354 LOC (2%) 13 files
*.py321 LOC (2%) 4 files
*.css26 LOC (<1%) 1 file
*.sql5 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 ".*[-]test[-].*".
  • 5 files match defined criteria (160 LOC, 1.3% vs. main code). All matches are in *.sh files.


*.sh160 LOC (100%) 5 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/pom[.]xml".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
  • 49 files match defined criteria (1,378 LOC, 11.3% vs. main code):
    • 45 *.sh files (859 LOC)
    • 3 *.js files (302 LOC)
    • 1 *.xml files (217 LOC)
  • " *.sh" is biggest, containing 62.34% of LOC.
  • " *.xml" is smallest, containing 15.75% of LOC.


*.sh859 LOC (62%) 45 files
*.js302 LOC (21%) 3 files
*.xml217 LOC (15%) 1 file
Other Code
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • 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 ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/[.]eslintignore".
  • 17 files match defined criteria (2,003 LOC, 16.5% vs. main code):
    • 7 *.md files (1,123 LOC)
    • 6 *.properties files (578 LOC)
    • 1 *.xml files (209 LOC)
    • 3 *.json files (93 LOC)
  • " *.md" is biggest, containing 56.07% of LOC.
  • " *.json" is smallest, containing 4.64% of LOC.


*.md1123 LOC (56%) 7 files
*.properties578 LOC (28%) 6 files
*.xml209 LOC (10%) 1 file
*.json93 LOC (4%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 22:17