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

main90994 LOC (47%) 709 files
test22732 LOC (11%) 239 files
generated0 LOC (0%) 0 files
build and deployment3063 LOC (1%) 32 files
other75568 LOC (39%) 620 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 ".*".
  • 709 files match defined criteria (90,994 LOC, 100.0% vs. main code):
    • 487 *.java files (39,333 LOC)
    • 87 *.tsx files (32,403 LOC)
    • 62 *.ts files (12,195 LOC)
    • 26 *.less files (3,257 LOC)
    • 17 *.go files (2,406 LOC)
    • 4 *.yaml files (352 LOC)
    • 7 *.xml files (280 LOC)
    • 9 *.scala files (275 LOC)
    • 3 *.sql files (196 LOC)
    • 4 *.groovy files (188 LOC)
    • 2 *.js files (88 LOC)
    • 1 *.html files (21 LOC)
  • " *.java" is biggest, containing 43.23% of LOC.
  • " *.html" is smallest, containing 0.02% of LOC.


*.java39333 LOC (43%) 487 files
*.tsx32403 LOC (35%) 87 files
*.ts12195 LOC (13%) 62 files
*.less3257 LOC (3%) 26 files
*.go2406 LOC (2%) 17 files
*.yaml352 LOC (<1%) 4 files
*.xml280 LOC (<1%) 7 files
*.scala275 LOC (<1%) 9 files
*.sql196 LOC (<1%) 3 files
*.groovy188 LOC (<1%) 4 files
*.js88 LOC (<1%) 2 files
*.html21 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
feature
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*[.]feature".
  • 239 files match defined criteria (22,732 LOC, 25.0% vs. main code):
    • 112 *.java files (21,093 LOC)
    • 107 *.groovy files (810 LOC)
    • 9 *.go files (466 LOC)
    • 1 *.scala files (133 LOC)
    • 2 *.sql files (112 LOC)
    • 6 *.xml files (86 LOC)
    • 1 *.py files (24 LOC)
    • 1 *.feature files (8 LOC)
  • " *.java" is biggest, containing 92.79% of LOC.
  • " *.feature" is smallest, containing 0.04% of LOC.


*.java21093 LOC (92%) 112 files
*.groovy810 LOC (3%) 107 files
*.go466 LOC (2%) 9 files
*.scala133 LOC (<1%) 1 file
*.sql112 LOC (<1%) 2 files
*.xml86 LOC (<1%) 6 files
*.py24 LOC (<1%) 1 file
*.feature8 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 ".*/assembly[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*/package[.]json".
  • 32 files match defined criteria (3,063 LOC, 3.4% vs. main code):
    • 13 *.xml files (2,629 LOC)
    • 19 *.sh files (434 LOC)
  • " *.xml" is biggest, containing 85.83% of LOC.
  • " *.sh" is smallest, containing 14.17% of LOC.


*.xml2629 LOC (85%) 13 files
*.sh434 LOC (14%) 19 files
Other Code
txt
properties
mod
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 ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]svg".
  • 620 files match defined criteria (75,568 LOC, 83.0% vs. main code):
    • 320 *.txt files (63,649 LOC)
    • 235 *.json files (8,760 LOC)
    • 35 *.svg files (1,298 LOC)
    • 17 *.properties files (1,007 LOC)
    • 11 *.md files (653 LOC)
    • 1 *.xml files (199 LOC)
    • 1 *.mod files (2 LOC)
  • " *.txt" is biggest, containing 84.23% of LOC.
  • " *.mod" is smallest, containing 0% of LOC.


*.txt63649 LOC (84%) 320 files
*.json8760 LOC (11%) 235 files
*.svg1298 LOC (1%) 35 files
*.properties1007 LOC (1%) 17 files
*.md653 LOC (<1%) 11 files
*.xml199 LOC (<1%) 1 file
*.mod2 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 17:39