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
gitattributes
feature
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.

main84671 LOC (46%) 640 files
test20784 LOC (11%) 208 files
generated0 LOC (0%) 0 files
build and deployment2696 LOC (1%) 29 files
other72290 LOC (40%) 592 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 ".*".
  • 640 files match defined criteria (84,671 LOC, 100.0% vs. main code):
    • 445 *.java files (35,751 LOC)
    • 87 *.tsx files (32,405 LOC)
    • 62 *.ts files (12,195 LOC)
    • 26 *.less files (3,257 LOC)
    • 4 *.yaml files (352 LOC)
    • 5 *.xml files (216 LOC)
    • 3 *.sql files (196 LOC)
    • 4 *.groovy files (188 LOC)
    • 2 *.js files (88 LOC)
    • 1 *.html files (21 LOC)
    • 1 *.yml files (2 LOC)
  • " *.java" is biggest, containing 42.22% of LOC.
  • " *.yml" is smallest, containing 0% of LOC.


*.java35751 LOC (42%) 445 files
*.tsx32405 LOC (38%) 87 files
*.ts12195 LOC (14%) 62 files
*.less3257 LOC (3%) 26 files
*.yaml352 LOC (<1%) 4 files
*.xml216 LOC (<1%) 5 files
*.sql196 LOC (<1%) 3 files
*.groovy188 LOC (<1%) 4 files
*.js88 LOC (<1%) 2 files
*.html21 LOC (<1%) 1 file
*.yml2 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 ".*[.]feature".
  • 208 files match defined criteria (20,784 LOC, 24.5% vs. main code):
    • 100 *.java files (19,815 LOC)
    • 99 *.groovy files (745 LOC)
    • 2 *.sql files (112 LOC)
    • 5 *.xml files (80 LOC)
    • 1 *.py files (24 LOC)
    • 1 *.feature files (8 LOC)
  • " *.java" is biggest, containing 95.34% of LOC.
  • " *.feature" is smallest, containing 0.04% of LOC.


*.java19815 LOC (95%) 100 files
*.groovy745 LOC (3%) 99 files
*.sql112 LOC (<1%) 2 files
*.xml80 LOC (<1%) 5 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 ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
  • 29 files match defined criteria (2,696 LOC, 3.2% vs. main code):
    • 12 *.xml files (2,313 LOC)
    • 17 *.sh files (383 LOC)
  • " *.xml" is biggest, containing 85.79% of LOC.
  • " *.sh" is smallest, containing 14.21% of LOC.


*.xml2313 LOC (85%) 12 files
*.sh383 LOC (14%) 17 files
Other Code
txt
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
  • 592 files match defined criteria (72,290 LOC, 85.4% vs. main code):
    • 304 *.txt files (61,465 LOC)
    • 227 *.json files (8,088 LOC)
    • 35 *.svg files (1,298 LOC)
    • 17 *.properties files (1,007 LOC)
    • 8 *.md files (233 LOC)
    • 1 *.xml files (199 LOC)
  • " *.txt" is biggest, containing 85.03% of LOC.
  • " *.xml" is smallest, containing 0.28% of LOC.


*.txt61465 LOC (85%) 304 files
*.json8088 LOC (11%) 227 files
*.svg1298 LOC (1%) 35 files
*.properties1007 LOC (1%) 17 files
*.md233 LOC (<1%) 8 files
*.xml199 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 21:20