apache / shardingsphere-elasticjob
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
txt
xsd
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.

main14763 LOC (38%) 380 files
test17318 LOC (44%) 375 files
generated0 LOC (0%) 0 files
build and deployment2898 LOC (7%) 43 files
other3745 LOC (9%) 78 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 ".*".
  • 380 files match defined criteria (14,763 LOC, 100.0% vs. main code):
    • 374 *.java files (14,497 LOC)
    • 6 *.xml files (266 LOC)
  • " *.java" is biggest, containing 98.2% of LOC.
  • " *.xml" is smallest, containing 1.8% of LOC.


*.java14497 LOC (98%) 374 files
*.xml266 LOC (1%) 6 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/.*".
  • 375 files match defined criteria (17,318 LOC, 117.3% vs. main code):
    • 335 *.java files (16,541 LOC)
    • 36 *.xml files (715 LOC)
    • 2 *.yml files (44 LOC)
    • 1 *.bat files (17 LOC)
    • 1 *.sh files (1 LOC)
  • " *.java" is biggest, containing 95.51% of LOC.
  • " *.sh" is smallest, containing 0.01% of LOC.


*.java16541 LOC (95%) 335 files
*.xml715 LOC (4%) 36 files
*.yml44 LOC (<1%) 2 files
*.bat17 LOC (<1%) 1 file
*.sh1 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 ".*/assembly[.]xml".
  • 43 files match defined criteria (2,898 LOC, 19.6% vs. main code). All matches are in *.xml files.


*.xml2898 LOC (100%) 43 files
Other Code
txt
properties
xsd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]json".
    • files with paths like ".*/resources/.*[.]xsd".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*/checkstyle[.]xml".
  • 78 files match defined criteria (3,745 LOC, 25.4% vs. main code):
    • 16 *.xml files (1,030 LOC)
    • 10 *.txt files (688 LOC)
    • 6 *.md files (582 LOC)
    • 21 *.java files (565 LOC)
    • 15 *.properties files (519 LOC)
    • 1 *.json files (135 LOC)
    • 3 *.yml files (102 LOC)
    • 1 *.xsd files (87 LOC)
    • 2 *.bat files (34 LOC)
    • 3 *.sh files (3 LOC)
  • " *.xml" is biggest, containing 27.5% of LOC.
  • " *.sh" is smallest, containing 0.08% of LOC.


*.xml1030 LOC (27%) 16 files
*.txt688 LOC (18%) 10 files
*.md582 LOC (15%) 6 files
*.java565 LOC (15%) 21 files
*.properties519 LOC (13%) 15 files
*.json135 LOC (3%) 1 file
*.yml102 LOC (2%) 3 files
*.xsd87 LOC (2%) 1 file
*.bat34 LOC (<1%) 2 files
*.sh3 LOC (<1%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 16:00