apache / incubator-hugegraph
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
editorconfig
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.

main200896 LOC (65%) 1,413 files
test10080 LOC (3%) 86 files
generated678 LOC (<1%) 3 files
build and deployment6222 LOC (2%) 73 files
other89171 LOC (29%) 624 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 ".*".
  • 1413 files match defined criteria (200,896 LOC, 100.0% vs. main code):
    • 1,350 *.java files (196,710 LOC)
    • 16 *.proto files (1,995 LOC)
    • 19 *.xml files (1,538 LOC)
    • 24 *.yaml files (593 LOC)
    • 4 *.groovy files (60 LOC)
  • " *.java" is biggest, containing 97.92% of LOC.
  • " *.groovy" is smallest, containing 0.03% of LOC.


*.java196710 LOC (97%) 1,350 files
*.proto1995 LOC (<1%) 16 files
*.xml1538 LOC (<1%) 19 files
*.yaml593 LOC (<1%) 24 files
*.groovy60 LOC (<1%) 4 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]ests/.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[-]test[-].*".
  • 86 files match defined criteria (10,080 LOC, 5.0% vs. main code):
    • 80 *.java files (9,794 LOC)
    • 5 *.xml files (252 LOC)
    • 1 *.sh files (34 LOC)
  • " *.java" is biggest, containing 97.16% of LOC.
  • " *.sh" is smallest, containing 0.34% of LOC.


*.java9794 LOC (97%) 80 files
*.xml252 LOC (2%) 5 files
*.sh34 LOC (<1%) 1 file
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with any line of content like "//[ ]*Generated by .*".
  • 3 files match defined criteria (678 LOC, 0.3% vs. main code). All matches are in *.java files.


*.java678 LOC (100%) 3 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 ".*[.]sh".
    • files with paths like ".*/assembly[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
  • 73 files match defined criteria (6,222 LOC, 3.1% vs. main code):
    • 43 *.xml files (5,740 LOC)
    • 30 *.sh files (482 LOC)
  • " *.xml" is biggest, containing 92.25% of LOC.
  • " *.sh" is smallest, containing 7.75% of LOC.


*.xml5740 LOC (92%) 43 files
*.sh482 LOC (7%) 30 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 ".*[.]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 ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]editorconfig".
  • 624 files match defined criteria (89,171 LOC, 44.4% vs. main code):
    • 575 *.txt files (87,651 LOC)
    • 35 *.properties files (900 LOC)
    • 10 *.md files (386 LOC)
    • 1 *.xml files (202 LOC)
    • 3 *.json files (32 LOC)
  • " *.txt" is biggest, containing 98.3% of LOC.
  • " *.json" is smallest, containing 0.04% of LOC.


*.txt87651 LOC (98%) 575 files
*.properties900 LOC (1%) 35 files
*.md386 LOC (<1%) 10 files
*.xml202 LOC (<1%) 1 file
*.json32 LOC (<1%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 17:38