apache / dubbo-js
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
proto
npmignore
mjs
mod
editorconfig
npmrc
txt
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.

main11548 LOC (25%) 161 files
test11115 LOC (24%) 109 files
generated8733 LOC (19%) 16 files
build and deployment4481 LOC (10%) 3 files
other8599 LOC (19%) 58 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
mjs
proto
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 161 files match defined criteria (11,548 LOC, 100.0% vs. main code):
    • 121 *.ts files (10,437 LOC)
    • 9 *.go files (373 LOC)
    • 4 *.cjs files (160 LOC)
    • 2 *.mjs files (154 LOC)
    • 3 *.proto files (106 LOC)
    • 9 *.js files (103 LOC)
    • 2 *.css files (99 LOC)
    • 2 *.tsx files (63 LOC)
    • 4 *.yaml files (35 LOC)
    • 1 *.html files (13 LOC)
    • 2 *.xml files (3 LOC)
    • 1 *.java files (1 LOC)
    • 1 *.yml files (1 LOC)
  • " *.ts" is biggest, containing 90.38% of LOC.
  • " *.yml" is smallest, containing 0.01% of LOC.


*.ts10437 LOC (90%) 121 files
*.go373 LOC (3%) 9 files
*.cjs160 LOC (1%) 4 files
*.mjs154 LOC (1%) 2 files
*.proto106 LOC (<1%) 3 files
*.js103 LOC (<1%) 9 files
*.css99 LOC (<1%) 2 files
*.tsx63 LOC (<1%) 2 files
*.yaml35 LOC (<1%) 4 files
*.html13 LOC (<1%) 1 file
*.xml3 LOC (<1%) 2 files
*.java1 LOC (<1%) 1 file
*.yml1 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 ".*_test[.].*".
    • files with paths like ".*[.]spec[.]ts".
    • files with paths like ".*/test_.*".
  • 109 files match defined criteria (11,115 LOC, 96.3% vs. main code):
    • 107 *.ts files (11,018 LOC)
    • 2 *.go files (97 LOC)
  • " *.ts" is biggest, containing 99.13% of LOC.
  • " *.go" is smallest, containing 0.87% of LOC.


*.ts11018 LOC (99%) 107 files
*.go97 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 ".*/package[-]lock[.]json".
    • files with paths like ".*/src/gen/.*".
  • 16 files match defined criteria (8,733 LOC, 75.6% vs. main code):
    • 2 *.json files (6,073 LOC)
    • 12 *.ts files (2,178 LOC)
    • 2 *.js files (482 LOC)
  • " *.json" is biggest, containing 69.54% of LOC.
  • " *.js" is smallest, containing 5.52% of LOC.


*.json6073 LOC (69%) 2 files
*.ts2178 LOC (24%) 12 files
*.js482 LOC (5%) 2 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/pnpm.*[.]ya?ml".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
  • 3 files match defined criteria (4,481 LOC, 38.8% vs. main code):
    • 2 *.yaml files (4,480 LOC)
    • 1 *.sh files (1 LOC)
  • " *.yaml" is biggest, containing 99.98% of LOC.
  • " *.sh" is smallest, containing 0.02% of LOC.


*.yaml4480 LOC (99%) 2 files
*.sh1 LOC (<1%) 1 file
Other Code
mod
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]md".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*/[.]npmignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]npmrc".
    • files with paths like ".*/[.]prettierignore".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/[Dd]emos?/.*".
  • 58 files match defined criteria (8,599 LOC, 74.5% vs. main code):
    • 34 *.json files (6,754 LOC)
    • 17 *.md files (1,019 LOC)
    • 2 *.js files (482 LOC)
    • 4 *.ts files (342 LOC)
    • 1 *.mod files (2 LOC)
  • " *.json" is biggest, containing 78.54% of LOC.
  • " *.mod" is smallest, containing 0.02% of LOC.


*.json6754 LOC (78%) 34 files
*.md1019 LOC (11%) 17 files
*.js482 LOC (5%) 2 files
*.ts342 LOC (3%) 4 files
*.mod2 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 15:23