apache / 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
patch
properties
mod
proto
cmd
eslintignore
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.

main75896 LOC (53%) 717 files
test53499 LOC (37%) 364 files
generated789 LOC (<1%) 22 files
build and deployment6890 LOC (4%) 45 files
other5237 LOC (3%) 50 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 ".*".
  • 717 files match defined criteria (75,896 LOC, 100.0% vs. main code):
    • 641 *.java files (67,585 LOC)
    • 36 *.go files (4,315 LOC)
    • 7 *.vue files (1,388 LOC)
    • 18 *.js files (927 LOC)
    • 1 *.proto files (652 LOC)
    • 6 *.scala files (566 LOC)
    • 2 *.yaml files (251 LOC)
    • 4 *.xml files (134 LOC)
    • 1 *.toml files (59 LOC)
    • 1 *.html files (19 LOC)
  • " *.java" is biggest, containing 89.05% of LOC.
  • " *.html" is smallest, containing 0.03% of LOC.


*.java67585 LOC (89%) 641 files
*.go4315 LOC (5%) 36 files
*.vue1388 LOC (1%) 7 files
*.js927 LOC (1%) 18 files
*.proto652 LOC (<1%) 1 file
*.scala566 LOC (<1%) 6 files
*.yaml251 LOC (<1%) 2 files
*.xml134 LOC (<1%) 4 files
*.toml59 LOC (<1%) 1 file
*.html19 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 ".*_test[.].*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/e2e/.*".
  • 364 files match defined criteria (53,499 LOC, 70.5% vs. main code):
    • 331 *.java files (50,015 LOC)
    • 13 *.go files (2,635 LOC)
    • 5 *.yaml files (553 LOC)
    • 6 *.sh files (155 LOC)
    • 9 *.xml files (141 LOC)
  • " *.java" is biggest, containing 93.49% of LOC.
  • " *.xml" is smallest, containing 0.26% of LOC.


*.java50015 LOC (93%) 331 files
*.go2635 LOC (4%) 13 files
*.yaml553 LOC (1%) 5 files
*.sh155 LOC (<1%) 6 files
*.xml141 LOC (<1%) 9 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 (789 LOC, 1.0% vs. main code). All matches are in *.go files.


*.go789 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 ".*[.]sh".
    • files with paths like ".*/pom[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[.]json".
  • 45 files match defined criteria (6,890 LOC, 9.1% vs. main code):
    • 29 *.xml files (6,239 LOC)
    • 16 *.sh files (651 LOC)
  • " *.xml" is biggest, containing 90.55% of LOC.
  • " *.sh" is smallest, containing 9.45% of LOC.


*.xml6239 LOC (90%) 29 files
*.sh651 LOC (9%) 16 files
Other Code
txt
patch
mod
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 ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*[.]patch".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]eslintignore".
  • 50 files match defined criteria (5,237 LOC, 6.9% vs. main code):
    • 20 *.txt files (3,065 LOC)
    • 11 *.md files (731 LOC)
    • 7 *.patch files (618 LOC)
    • 7 *.yaml files (352 LOC)
    • 1 *.xml files (282 LOC)
    • 2 *.json files (92 LOC)
    • 1 *.mod files (76 LOC)
    • 1 *.properties files (21 LOC)
  • " *.txt" is biggest, containing 58.53% of LOC.
  • " *.properties" is smallest, containing 0.4% of LOC.


*.txt3065 LOC (58%) 20 files
*.md731 LOC (13%) 11 files
*.patch618 LOC (11%) 7 files
*.yaml352 LOC (6%) 7 files
*.xml282 LOC (5%) 1 file
*.json92 LOC (1%) 2 files
*.mod76 LOC (1%) 1 file
*.properties21 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 20:38