apache / shardingsphere-ui
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
babelrc
editorconfig
cmd
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.

main5729 LOC (65%) 99 files
test343 LOC (3%) 10 files
generated0 LOC (0%) 0 files
build and deployment986 LOC (11%) 10 files
other1688 LOC (19%) 29 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 ".*".
  • 99 files match defined criteria (5,729 LOC, 100.0% vs. main code):
    • 19 *.vue files (2,854 LOC)
    • 47 *.java files (1,449 LOC)
    • 25 *.js files (1,185 LOC)
    • 4 *.xml files (141 LOC)
    • 2 *.scss files (78 LOC)
    • 2 *.html files (22 LOC)
  • " *.vue" is biggest, containing 49.82% of LOC.
  • " *.html" is smallest, containing 0.38% of LOC.


*.vue2854 LOC (49%) 19 files
*.java1449 LOC (25%) 47 files
*.js1185 LOC (20%) 25 files
*.xml141 LOC (2%) 4 files
*.scss78 LOC (1%) 2 files
*.html22 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 ".*/[Ss]pecs/.*".
    • files with paths like ".*[.]spec[.]js".
    • files with paths like ".*/karma[.]conf[.]js".
  • 10 files match defined criteria (343 LOC, 6.0% vs. main code). All matches are in *.js files.


*.js343 LOC (100%) 10 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 ".*/package[.]json".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]sh".
  • 10 files match defined criteria (986 LOC, 17.2% vs. main code):
    • 6 *.xml files (610 LOC)
    • 4 *.js files (376 LOC)
  • " *.xml" is biggest, containing 61.87% of LOC.
  • " *.js" is smallest, containing 38.13% of LOC.


*.xml610 LOC (61%) 6 files
*.js376 LOC (38%) 4 files
Other Code
txt
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]txt".
  • 29 files match defined criteria (1,688 LOC, 29.5% vs. main code):
    • 6 *.md files (856 LOC)
    • 20 *.txt files (685 LOC)
    • 1 *.json files (109 LOC)
    • 2 *.properties files (38 LOC)
  • " *.md" is biggest, containing 50.71% of LOC.
  • " *.properties" is smallest, containing 2.25% of LOC.


*.md856 LOC (50%) 6 files
*.txt685 LOC (40%) 20 files
*.json109 LOC (6%) 1 file
*.properties38 LOC (2%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-11 01:47