apache / dolphinscheduler
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
hcl
gitattributes
tpl
gitmodules
cmd
eslintignore
prettierignore
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.

main169823 LOC (53%) 2,754 files
test58522 LOC (18%) 700 files
generated0 LOC (0%) 0 files
build and deployment13800 LOC (4%) 154 files
other75816 LOC (23%) 398 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
tpl
hcl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 2754 files match defined criteria (169,823 LOC, 100.0% vs. main code):
    • 1,961 *.java files (100,652 LOC)
    • 436 *.ts files (34,156 LOC)
    • 139 *.tsx files (18,839 LOC)
    • 40 *.sql files (6,629 LOC)
    • 57 *.xml files (3,974 LOC)
    • 48 *.yaml files (2,707 LOC)
    • 39 *.scss files (1,015 LOC)
    • 22 *.tf files (979 LOC)
    • 1 *.tpl files (386 LOC)
    • 7 *.py files (281 LOC)
    • 2 *.hcl files (163 LOC)
    • 1 *.rdf files (28 LOC)
    • 1 *.html files (14 LOC)
  • " *.java" is biggest, containing 59.27% of LOC.
  • " *.html" is smallest, containing 0.01% of LOC.


*.java100652 LOC (59%) 1,961 files
*.ts34156 LOC (20%) 436 files
*.tsx18839 LOC (11%) 139 files
*.sql6629 LOC (3%) 40 files
*.xml3974 LOC (2%) 57 files
*.yaml2707 LOC (1%) 48 files
*.scss1015 LOC (<1%) 39 files
*.tf979 LOC (<1%) 22 files
*.tpl386 LOC (<1%) 1 file
*.py281 LOC (<1%) 7 files
*.hcl163 LOC (<1%) 2 files
*.rdf28 LOC (<1%) 1 file
*.html14 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[-].*".
    • files with paths like ".*/test[.].*".
  • 700 files match defined criteria (58,522 LOC, 34.5% vs. main code):
    • 558 *.java files (48,726 LOC)
    • 90 *.yaml files (6,192 LOC)
    • 14 *.sql files (3,215 LOC)
    • 32 *.xml files (315 LOC)
    • 5 *.sh files (39 LOC)
    • 1 *.js files (35 LOC)
  • " *.java" is biggest, containing 83.26% of LOC.
  • " *.js" is smallest, containing 0.06% of LOC.


*.java48726 LOC (83%) 558 files
*.yaml6192 LOC (10%) 90 files
*.sql3215 LOC (5%) 14 files
*.xml315 LOC (<1%) 32 files
*.sh39 LOC (<1%) 5 files
*.js35 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 ".*/docker[-]compose[.]yaml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/pnpm.*[.]ya?ml".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*[.]dockerfile".
  • 154 files match defined criteria (13,800 LOC, 8.1% vs. main code):
    • 140 *.xml files (10,234 LOC)
    • 2 *.yaml files (3,178 LOC)
    • 6 *.sh files (202 LOC)
    • 6 *.dockerfile files (186 LOC)
  • " *.xml" is biggest, containing 74.16% of LOC.
  • " *.dockerfile" is smallest, containing 1.35% of LOC.


*.xml10234 LOC (74%) 140 files
*.yaml3178 LOC (23%) 2 files
*.sh202 LOC (1%) 6 files
*.dockerfile186 LOC (1%) 6 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 ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]prettierignore".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[.]eslintignore".
  • 398 files match defined criteria (75,816 LOC, 44.6% vs. main code):
    • 347 *.txt files (61,556 LOC)
    • 15 *.json files (10,551 LOC)
    • 11 *.properties files (1,661 LOC)
    • 17 *.md files (1,001 LOC)
    • 6 *.java files (853 LOC)
    • 2 *.svg files (194 LOC)
  • " *.txt" is biggest, containing 81.19% of LOC.
  • " *.svg" is smallest, containing 0.26% of LOC.


*.txt61556 LOC (81%) 347 files
*.json10551 LOC (13%) 15 files
*.properties1661 LOC (2%) 11 files
*.md1001 LOC (1%) 17 files
*.java853 LOC (1%) 6 files
*.svg194 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 19:51