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
properties
mod
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.

main49381 LOC (51%) 630 files
test143 LOC (<1%) 2 files
generated0 LOC (0%) 0 files
build and deployment1443 LOC (1%) 20 files
other44587 LOC (46%) 251 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 ".*".
  • 630 files match defined criteria (49,381 LOC, 100.0% vs. main code):
    • 580 *.java files (42,643 LOC)
    • 38 *.yaml files (5,894 LOC)
    • 2 *.groovy files (450 LOC)
    • 5 *.go files (250 LOC)
    • 5 *.xml files (144 LOC)
  • " *.java" is biggest, containing 86.36% of LOC.
  • " *.xml" is smallest, containing 0.29% of LOC.


*.java42643 LOC (86%) 580 files
*.yaml5894 LOC (11%) 38 files
*.groovy450 LOC (<1%) 2 files
*.go250 LOC (<1%) 5 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[.].*".
  • 2 files match defined criteria (143 LOC, 0.3% vs. main code):
    • 1 *.go files (86 LOC)
    • 1 *.sh files (57 LOC)
  • " *.go" is biggest, containing 60.14% of LOC.
  • " *.sh" is smallest, containing 39.86% of LOC.


*.go86 LOC (60%) 1 file
*.sh57 LOC (39%) 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 ".*/assembly[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
  • 20 files match defined criteria (1,443 LOC, 2.9% vs. main code):
    • 11 *.xml files (1,219 LOC)
    • 9 *.sh files (224 LOC)
  • " *.xml" is biggest, containing 84.48% of LOC.
  • " *.sh" is smallest, containing 15.52% of LOC.


*.xml1219 LOC (84%) 11 files
*.sh224 LOC (15%) 9 files
Other Code
txt
mod
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
  • 251 files match defined criteria (44,587 LOC, 90.3% vs. main code):
    • 238 *.txt files (43,353 LOC)
    • 5 *.json files (947 LOC)
    • 2 *.md files (97 LOC)
    • 1 *.mod files (68 LOC)
    • 1 *.xml files (59 LOC)
    • 2 *.properties files (56 LOC)
    • 2 *.yaml files (7 LOC)
  • " *.txt" is biggest, containing 97.23% of LOC.
  • " *.yaml" is smallest, containing 0.02% of LOC.


*.txt43353 LOC (97%) 238 files
*.json947 LOC (2%) 5 files
*.md97 LOC (<1%) 2 files
*.mod68 LOC (<1%) 1 file
*.xml59 LOC (<1%) 1 file
*.properties56 LOC (<1%) 2 files
*.yaml7 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-11 02:03