apache / incubator-hugegraph-computer
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
proto
ini
mod
properties
gitattributes
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.

main106023 LOC (70%) 855 files
test2201 LOC (1%) 31 files
generated0 LOC (0%) 0 files
build and deployment1731 LOC (1%) 27 files
other39705 LOC (26%) 239 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 ".*".
  • 855 files match defined criteria (106,023 LOC, 100.0% vs. main code):
    • 161 *.go files (48,334 LOC)
    • 599 *.java files (43,966 LOC)
    • 48 *.proto files (9,183 LOC)
    • 40 *.yaml files (3,946 LOC)
    • 2 *.groovy files (450 LOC)
    • 5 *.xml files (144 LOC)
  • " *.go" is biggest, containing 45.59% of LOC.
  • " *.xml" is smallest, containing 0.14% of LOC.


*.go48334 LOC (45%) 161 files
*.java43966 LOC (41%) 599 files
*.proto9183 LOC (8%) 48 files
*.yaml3946 LOC (3%) 40 files
*.groovy450 LOC (<1%) 2 files
*.xml144 LOC (<1%) 5 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 ".*_test[.].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/test_.*".
  • 31 files match defined criteria (2,201 LOC, 2.1% vs. main code):
    • 29 *.go files (2,142 LOC)
    • 2 *.sh files (59 LOC)
  • " *.go" is biggest, containing 97.32% of LOC.
  • " *.sh" is smallest, containing 2.68% of LOC.


*.go2142 LOC (97%) 29 files
*.sh59 LOC (2%) 2 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 ".*[.]sh".
    • files with paths like ".*/assembly[.]xml".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/[.]gitattributes".
  • 27 files match defined criteria (1,731 LOC, 1.6% vs. main code):
    • 11 *.xml files (1,279 LOC)
    • 15 *.sh files (436 LOC)
    • 1 *.bat files (16 LOC)
  • " *.xml" is biggest, containing 73.89% of LOC.
  • " *.bat" is smallest, containing 0.92% of LOC.


*.xml1279 LOC (73%) 11 files
*.sh436 LOC (25%) 15 files
*.bat16 LOC (<1%) 1 file
Other Code
txt
mod
ini
properties
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 ".*[.]txt".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]ini".
  • 239 files match defined criteria (39,705 LOC, 37.4% vs. main code):
    • 216 *.txt files (38,153 LOC)
    • 5 *.json files (947 LOC)
    • 5 *.md files (202 LOC)
    • 2 *.mod files (150 LOC)
    • 6 *.ini files (129 LOC)
    • 1 *.xml files (59 LOC)
    • 2 *.properties files (58 LOC)
    • 2 *.yaml files (7 LOC)
  • " *.txt" is biggest, containing 96.09% of LOC.
  • " *.yaml" is smallest, containing 0.02% of LOC.


*.txt38153 LOC (96%) 216 files
*.json947 LOC (2%) 5 files
*.md202 LOC (<1%) 5 files
*.mod150 LOC (<1%) 2 files
*.ini129 LOC (<1%) 6 files
*.xml59 LOC (<1%) 1 file
*.properties58 LOC (<1%) 2 files
*.yaml7 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 20:19