uber / rides-android-sdk
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
txt
pro
gtpl
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.

main5849 LOC (44%) 138 files
test4418 LOC (33%) 35 files
generated0 LOC (0%) 0 files
build and deployment554 LOC (4%) 8 files
other2258 LOC (17%) 53 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
gtpl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 138 files match defined criteria (5,849 LOC, 100.0% vs. main code):
    • 41 *.java files (3,691 LOC)
    • 40 *.kt files (1,284 LOC)
    • 49 *.xml files (464 LOC)
    • 6 *.kts files (330 LOC)
    • 1 *.toml files (75 LOC)
    • 1 *.gtpl files (5 LOC)
  • " *.java" is biggest, containing 63.1% of LOC.
  • " *.gtpl" is smallest, containing 0.09% of LOC.


*.java3691 LOC (63%) 41 files
*.kt1284 LOC (21%) 40 files
*.xml464 LOC (7%) 49 files
*.kts330 LOC (5%) 6 files
*.toml75 LOC (1%) 1 file
*.gtpl5 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/.*".
  • 35 files match defined criteria (4,418 LOC, 75.5% vs. main code):
    • 25 *.java files (3,828 LOC)
    • 10 *.kt files (590 LOC)
  • " *.java" is biggest, containing 86.65% of LOC.
  • " *.kt" is smallest, containing 13.35% of LOC.


*.java3828 LOC (86%) 25 files
*.kt590 LOC (13%) 10 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 ".*[.]gradle".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/AndroidManifest[.]xml".
    • files with paths like ".*[.]bat".
  • 8 files match defined criteria (554 LOC, 9.5% vs. main code):
    • 3 *.gradle files (418 LOC)
    • 4 *.xml files (75 LOC)
    • 1 *.bat files (61 LOC)
  • " *.gradle" is biggest, containing 75.45% of LOC.
  • " *.bat" is smallest, containing 11.01% of LOC.


*.gradle418 LOC (75%) 3 files
*.xml75 LOC (13%) 4 files
*.bat61 LOC (11%) 1 file
Other Code
properties
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Ss]amples/.*".
  • 53 files match defined criteria (2,258 LOC, 38.6% vs. main code):
    • 9 *.java files (627 LOC)
    • 5 *.md files (606 LOC)
    • 20 *.xml files (439 LOC)
    • 5 *.json files (337 LOC)
    • 8 *.properties files (113 LOC)
    • 3 *.kts files (88 LOC)
    • 3 *.txt files (48 LOC)
  • " *.java" is biggest, containing 27.77% of LOC.
  • " *.txt" is smallest, containing 2.13% of LOC.


*.java627 LOC (27%) 9 files
*.md606 LOC (26%) 5 files
*.xml439 LOC (19%) 20 files
*.json337 LOC (14%) 5 files
*.properties113 LOC (5%) 8 files
*.kts88 LOC (3%) 3 files
*.txt48 LOC (2%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-03 07:36