mozilla / rust-android-gradle
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
properties
pro
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.

main716 LOC (28%) 8 files
test516 LOC (20%) 11 files
generated0 LOC (0%) 0 files
build and deployment227 LOC (8%) 6 files
other1089 LOC (42%) 35 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 ".*".
  • 8 files match defined criteria (716 LOC, 100.0% vs. main code):
    • 6 *.kt files (650 LOC)
    • 1 *.groovy files (41 LOC)
    • 1 *.py files (25 LOC)
  • " *.kt" is biggest, containing 90.78% of LOC.
  • " *.py" is smallest, containing 3.49% of LOC.


*.kt650 LOC (90%) 6 files
*.groovy41 LOC (5%) 1 file
*.py25 LOC (3%) 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 ".*/src/androidTest/.*".
  • 11 files match defined criteria (516 LOC, 72.1% vs. main code):
    • 9 *.groovy files (479 LOC)
    • 1 *.rs files (25 LOC)
    • 1 *.toml files (12 LOC)
  • " *.groovy" is biggest, containing 92.83% of LOC.
  • " *.toml" is smallest, containing 2.33% of LOC.


*.groovy479 LOC (92%) 9 files
*.rs25 LOC (4%) 1 file
*.toml12 LOC (2%) 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 ".*[.]gradle".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/AndroidManifest[.]xml".
  • 6 files match defined criteria (227 LOC, 31.7% vs. main code):
    • 3 *.gradle files (157 LOC)
    • 2 *.bat files (69 LOC)
    • 1 *.sh files (1 LOC)
  • " *.gradle" is biggest, containing 69.16% of LOC.
  • " *.sh" is smallest, containing 0.44% of LOC.


*.gradle157 LOC (69%) 3 files
*.bat69 LOC (30%) 2 files
*.sh1 LOC (<1%) 1 file
Other Code
properties
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 ".*[.]txt".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[Ss]amples/.*".
  • 35 files match defined criteria (1,089 LOC, 152.1% vs. main code):
    • 3 *.md files (500 LOC)
    • 6 *.gradle files (212 LOC)
    • 9 *.java files (150 LOC)
    • 12 *.xml files (112 LOC)
    • 1 *.bat files (76 LOC)
    • 1 *.rs files (25 LOC)
    • 1 *.toml files (12 LOC)
    • 2 *.properties files (2 LOC)
  • " *.md" is biggest, containing 45.91% of LOC.
  • " *.properties" is smallest, containing 0.18% of LOC.


*.md500 LOC (45%) 3 files
*.gradle212 LOC (19%) 6 files
*.java150 LOC (13%) 9 files
*.xml112 LOC (10%) 12 files
*.bat76 LOC (6%) 1 file
*.rs25 LOC (2%) 1 file
*.toml12 LOC (1%) 1 file
*.properties2 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-11 19:49