apache / incubator-uniffle
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
patch
mod
proto
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.

main57701 LOC (55%) 459 files
test38269 LOC (37%) 276 files
generated764 LOC (<1%) 22 files
build and deployment5011 LOC (4%) 31 files
other1478 LOC (1%) 24 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 ".*".
  • 459 files match defined criteria (57,701 LOC, 100.0% vs. main code):
    • 416 *.java files (43,091 LOC)
    • 3 *.yaml files (9,912 LOC)
    • 37 *.go files (4,193 LOC)
    • 1 *.proto files (437 LOC)
    • 1 *.toml files (59 LOC)
    • 1 *.xml files (9 LOC)
  • " *.java" is biggest, containing 74.68% of LOC.
  • " *.xml" is smallest, containing 0.02% of LOC.


*.java43091 LOC (74%) 416 files
*.yaml9912 LOC (17%) 3 files
*.go4193 LOC (7%) 37 files
*.proto437 LOC (<1%) 1 file
*.toml59 LOC (<1%) 1 file
*.xml9 LOC (<1%) 1 file
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]est/.*".
    • files with paths like ".*/e2e/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*[-]test[-].*".
  • 276 files match defined criteria (38,269 LOC, 66.3% vs. main code):
    • 259 *.java files (35,232 LOC)
    • 11 *.go files (2,355 LOC)
    • 4 *.yaml files (531 LOC)
    • 2 *.sh files (151 LOC)
  • " *.java" is biggest, containing 92.06% of LOC.
  • " *.sh" is smallest, containing 0.39% of LOC.


*.java35232 LOC (92%) 259 files
*.go2355 LOC (6%) 11 files
*.yaml531 LOC (1%) 4 files
*.sh151 LOC (<1%) 2 files
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/generated/.*".
    • files with paths like ".*_generated[.][a-z]+".
  • 22 files match defined criteria (764 LOC, 1.3% vs. main code). All matches are in *.go files.


*.go764 LOC (100%) 22 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 31 files match defined criteria (5,011 LOC, 8.7% vs. main code):
    • 23 *.xml files (4,654 LOC)
    • 8 *.sh files (357 LOC)
  • " *.xml" is biggest, containing 92.88% of LOC.
  • " *.sh" is smallest, containing 7.12% of LOC.


*.xml4654 LOC (92%) 23 files
*.sh357 LOC (7%) 8 files
Other Code
patch
properties
mod
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]patch".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
  • 24 files match defined criteria (1,478 LOC, 2.6% vs. main code):
    • 7 *.md files (458 LOC)
    • 1 *.xml files (282 LOC)
    • 6 *.yaml files (277 LOC)
    • 3 *.patch files (265 LOC)
    • 4 *.properties files (89 LOC)
    • 1 *.mod files (75 LOC)
    • 2 *.txt files (32 LOC)
  • " *.md" is biggest, containing 30.99% of LOC.
  • " *.txt" is smallest, containing 2.17% of LOC.


*.md458 LOC (30%) 7 files
*.xml282 LOC (19%) 1 file
*.yaml277 LOC (18%) 6 files
*.patch265 LOC (17%) 3 files
*.properties89 LOC (6%) 4 files
*.mod75 LOC (5%) 1 file
*.txt32 LOC (2%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-11 02:32