apache / incubator-opendal
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
mdx
hs
feature
ml
lua
zig
pyi
mli
csproj
npmignore
rockspec
editorconfig
gitattributes
cabal
txt
properties
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.

main44671 LOC (79%) 359 files
test4362 LOC (7%) 45 files
generated0 LOC (0%) 0 files
build and deployment298 LOC (<1%) 5 files
other7198 LOC (12%) 93 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
hs
zig
mli
cabal
pyi
ml
rockspec
lua
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 359 files match defined criteria (44,671 LOC, 100.0% vs. main code):
    • 286 *.rs files (40,915 LOC)
    • 21 *.toml files (956 LOC)
    • 3 *.hs files (732 LOC)
    • 8 *.js files (656 LOC)
    • 7 *.java files (263 LOC)
    • 5 *.py files (221 LOC)
    • 2 *.zig files (175 LOC)
    • 2 *.mli files (114 LOC)
    • 1 *.h files (97 LOC)
    • 1 *.ts files (90 LOC)
    • 3 *.swift files (83 LOC)
    • 1 *.cabal files (67 LOC)
    • 2 *.pyi files (66 LOC)
    • 3 *.ml files (58 LOC)
    • 1 *.cs files (37 LOC)
    • 1 *.php files (33 LOC)
    • 2 *.css files (26 LOC)
    • 1 *.gemspec files (25 LOC)
    • 1 *.rockspec files (24 LOC)
    • 1 *.xml files (12 LOC)
    • 3 *.lua files (12 LOC)
    • 3 *.rb files (8 LOC)
    • 1 *.yml files (1 LOC)
  • " *.rs" is biggest, containing 91.59% of LOC.
  • " *.yml" is smallest, containing 0% of LOC.


*.rs40915 LOC (91%) 286 files
*.toml956 LOC (2%) 21 files
*.hs732 LOC (1%) 3 files
*.js656 LOC (1%) 8 files
*.java263 LOC (<1%) 7 files
*.py221 LOC (<1%) 5 files
*.zig175 LOC (<1%) 2 files
*.mli114 LOC (<1%) 2 files
*.h97 LOC (<1%) 1 file
*.ts90 LOC (<1%) 1 file
*.swift83 LOC (<1%) 3 files
*.cabal67 LOC (<1%) 1 file
*.pyi66 LOC (<1%) 2 files
*.ml58 LOC (<1%) 3 files
*.cs37 LOC (<1%) 1 file
*.php33 LOC (<1%) 1 file
*.css26 LOC (<1%) 2 files
*.gemspec25 LOC (<1%) 1 file
*.rockspec24 LOC (<1%) 1 file
*.xml12 LOC (<1%) 1 file
*.lua12 LOC (<1%) 3 files
*.rb8 LOC (<1%) 3 files
*.yml1 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
hs
feature
zig
lua
ml
csproj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[.]feature".
    • files with paths like ".*[.][Tt]ests/.*".
    • files with paths like ".*[.][Tt]ests[.].*".
  • 45 files match defined criteria (4,362 LOC, 9.8% vs. main code):
    • 16 *.rs files (3,182 LOC)
    • 5 *.java files (187 LOC)
    • 2 *.hs files (165 LOC)
    • 5 *.feature files (155 LOC)
    • 4 *.php files (139 LOC)
    • 2 *.cpp files (124 LOC)
    • 1 *.zig files (79 LOC)
    • 1 *.lua files (71 LOC)
    • 1 *.ml files (59 LOC)
    • 1 *.py files (49 LOC)
    • 1 *.js files (45 LOC)
    • 1 *.rb files (37 LOC)
    • 1 *.csproj files (24 LOC)
    • 1 *.swift files (19 LOC)
    • 2 *.cs files (15 LOC)
    • 1 *.hpp files (12 LOC)
  • " *.rs" is biggest, containing 72.95% of LOC.
  • " *.hpp" is smallest, containing 0.28% of LOC.


*.rs3182 LOC (72%) 16 files
*.java187 LOC (4%) 5 files
*.hs165 LOC (3%) 2 files
*.feature155 LOC (3%) 5 files
*.php139 LOC (3%) 4 files
*.cpp124 LOC (2%) 2 files
*.zig79 LOC (1%) 1 file
*.lua71 LOC (1%) 1 file
*.ml59 LOC (1%) 1 file
*.py49 LOC (1%) 1 file
*.js45 LOC (1%) 1 file
*.rb37 LOC (<1%) 1 file
*.csproj24 LOC (<1%) 1 file
*.swift19 LOC (<1%) 1 file
*.cs15 LOC (<1%) 2 files
*.hpp12 LOC (<1%) 1 file
Build and Deployment Code
Source code used to configure or support build and deployment process.
csproj
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 ".*/package[.]json".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*/pom[.]xml".
    • files with paths like ".*[.]csproj".
  • 5 files match defined criteria (298 LOC, 0.7% vs. main code):
    • 1 *.xml files (190 LOC)
    • 3 *.sh files (86 LOC)
    • 1 *.csproj files (22 LOC)
  • " *.xml" is biggest, containing 63.76% of LOC.
  • " *.csproj" is smallest, containing 7.38% of LOC.


*.xml190 LOC (63%) 1 file
*.sh86 LOC (28%) 3 files
*.csproj22 LOC (7%) 1 file
Other Code
mdx
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 ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]mdx".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/[.]npmignore".
    • files with paths like ".*/[.]prettierignore".
    • files with paths like ".*[.]properties".
  • 93 files match defined criteria (7,198 LOC, 16.1% vs. main code):
    • 70 *.md files (6,648 LOC)
    • 10 *.json files (272 LOC)
    • 3 *.mdx files (84 LOC)
    • 3 *.rs files (56 LOC)
    • 1 *.ipynb files (46 LOC)
    • 3 *.toml files (33 LOC)
    • 1 *.c files (24 LOC)
    • 1 *.properties files (18 LOC)
    • 1 *.js files (17 LOC)
  • " *.md" is biggest, containing 92.36% of LOC.
  • " *.js" is smallest, containing 0.24% of LOC.


*.md6648 LOC (92%) 70 files
*.json272 LOC (3%) 10 files
*.mdx84 LOC (1%) 3 files
*.rs56 LOC (<1%) 3 files
*.ipynb46 LOC (<1%) 1 file
*.toml33 LOC (<1%) 3 files
*.c24 LOC (<1%) 1 file
*.properties18 LOC (<1%) 1 file
*.js17 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-11 02:22