mozilla / uniffi-rs
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
webidl
plist
txt
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.

main37788 LOC (74%) 478 files
test8780 LOC (17%) 141 files
generated0 LOC (0%) 0 files
build and deployment233 LOC (<1%) 12 files
other4103 LOC (8%) 162 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 478 files match defined criteria (37,788 LOC, 100.0% vs. main code):
    • 265 *.rs files (30,309 LOC)
    • 41 *.kt files (1,677 LOC)
    • 36 *.swift files (1,675 LOC)
    • 40 *.py files (1,670 LOC)
    • 82 *.toml files (1,397 LOC)
    • 12 *.rb files (964 LOC)
    • 1 *.h files (64 LOC)
    • 1 *.kts files (32 LOC)
  • " *.rs" is biggest, containing 80.21% of LOC.
  • " *.kts" is smallest, containing 0.08% of LOC.


*.rs30309 LOC (80%) 265 files
*.kt1677 LOC (4%) 41 files
*.swift1675 LOC (4%) 36 files
*.py1670 LOC (4%) 40 files
*.toml1397 LOC (3%) 82 files
*.rb964 LOC (2%) 12 files
*.h64 LOC (<1%) 1 file
*.kts32 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
webidl
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 ".*/test[.].*".
    • files with paths like ".*_test[.].*".
  • 141 files match defined criteria (8,780 LOC, 23.2% vs. main code):
    • 5 *.webidl files (2,869 LOC)
    • 26 *.py files (1,535 LOC)
    • 26 *.swift files (1,337 LOC)
    • 25 *.kts files (1,316 LOC)
    • 53 *.rs files (1,159 LOC)
    • 6 *.rb files (564 LOC)
  • " *.webidl" is biggest, containing 32.68% of LOC.
  • " *.rb" is smallest, containing 6.42% of LOC.


*.webidl2869 LOC (32%) 5 files
*.py1535 LOC (17%) 26 files
*.swift1337 LOC (15%) 26 files
*.kts1316 LOC (14%) 25 files
*.rs1159 LOC (13%) 53 files
*.rb564 LOC (6%) 6 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 12 files match defined criteria (233 LOC, 0.6% vs. main code). All matches are in *.sh files.


*.sh233 LOC (100%) 12 files
Other Code
plist
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]plist".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Dd]emos?/.*".
  • 162 files match defined criteria (4,103 LOC, 10.9% vs. main code):
    • 52 *.md files (1,214 LOC)
    • 37 *.rs files (1,062 LOC)
    • 16 *.swift files (458 LOC)
    • 10 *.kts files (333 LOC)
    • 18 *.toml files (296 LOC)
    • 13 *.py files (285 LOC)
    • 5 *.rb files (155 LOC)
    • 4 *.json files (121 LOC)
    • 3 *.plist files (94 LOC)
    • 1 *.sh files (46 LOC)
    • 1 *.kt files (28 LOC)
    • 1 *.txt files (6 LOC)
    • 1 *.h files (5 LOC)
  • " *.md" is biggest, containing 29.59% of LOC.
  • " *.h" is smallest, containing 0.12% of LOC.


*.md1214 LOC (29%) 52 files
*.rs1062 LOC (25%) 37 files
*.swift458 LOC (11%) 16 files
*.kts333 LOC (8%) 10 files
*.toml296 LOC (7%) 18 files
*.py285 LOC (6%) 13 files
*.rb155 LOC (3%) 5 files
*.json121 LOC (2%) 4 files
*.plist94 LOC (2%) 3 files
*.sh46 LOC (1%) 1 file
*.kt28 LOC (<1%) 1 file
*.txt6 LOC (<1%) 1 file
*.h5 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-11 19:52