Uber / RIBs
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
plist
txt
podspec
storyboard
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.

main18845 LOC (62%) 516 files
test3270 LOC (10%) 67 files
generated0 LOC (0%) 0 files
build and deployment858 LOC (2%) 31 files
other7025 LOC (23%) 236 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 ".*".
  • 516 files match defined criteria (18,845 LOC, 100.0% vs. main code):
    • 199 *.swift files (6,541 LOC)
    • 137 *.java files (5,591 LOC)
    • 138 *.kt files (5,259 LOC)
    • 25 *.xml files (854 LOC)
    • 12 *.kts files (333 LOC)
    • 2 *.toml files (134 LOC)
    • 2 *.js files (130 LOC)
    • 1 *.h files (3 LOC)
  • " *.swift" is biggest, containing 34.71% of LOC.
  • " *.h" is smallest, containing 0.02% of LOC.


*.swift6541 LOC (34%) 199 files
*.java5591 LOC (29%) 137 files
*.kt5259 LOC (27%) 138 files
*.xml854 LOC (4%) 25 files
*.kts333 LOC (1%) 12 files
*.toml134 LOC (<1%) 2 files
*.js130 LOC (<1%) 2 files
*.h3 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/.*".
  • 67 files match defined criteria (3,270 LOC, 17.4% vs. main code):
    • 31 *.kt files (2,631 LOC)
    • 36 *.java files (639 LOC)
  • " *.kt" is biggest, containing 80.46% of LOC.
  • " *.java" is smallest, containing 19.54% of LOC.


*.kt2631 LOC (80%) 31 files
*.java639 LOC (19%) 36 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
podspec
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]podspec".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]gradle".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/AndroidManifest[.]xml".
    • files with paths like ".*[.]bat".
  • 31 files match defined criteria (858 LOC, 4.6% vs. main code):
    • 21 *.gradle files (563 LOC)
    • 5 *.xml files (126 LOC)
    • 3 *.sh files (87 LOC)
    • 1 *.bat files (66 LOC)
    • 1 *.podspec files (16 LOC)
  • " *.gradle" is biggest, containing 65.62% of LOC.
  • " *.podspec" is smallest, containing 1.86% of LOC.


*.gradle563 LOC (65%) 21 files
*.xml126 LOC (14%) 5 files
*.sh87 LOC (10%) 3 files
*.bat66 LOC (7%) 1 file
*.podspec16 LOC (1%) 1 file
Other Code
plist
properties
txt
storyboard
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]storyboard".
    • files with paths like ".*[.]xib".
    • files with paths like ".*[.]plist".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 236 files match defined criteria (7,025 LOC, 37.3% vs. main code):
    • 59 *.java files (2,371 LOC)
    • 68 *.kt files (1,775 LOC)
    • 31 *.xml files (986 LOC)
    • 37 *.md files (569 LOC)
    • 12 *.plist files (557 LOC)
    • 20 *.properties files (336 LOC)
    • 1 *.txt files (180 LOC)
    • 5 *.gradle files (164 LOC)
    • 1 *.json files (34 LOC)
    • 1 *.storyboard files (27 LOC)
    • 1 *.xib files (26 LOC)
  • " *.java" is biggest, containing 33.75% of LOC.
  • " *.xib" is smallest, containing 0.37% of LOC.


*.java2371 LOC (33%) 59 files
*.kt1775 LOC (25%) 68 files
*.xml986 LOC (14%) 31 files
*.md569 LOC (8%) 37 files
*.plist557 LOC (7%) 12 files
*.properties336 LOC (4%) 20 files
*.txt180 LOC (2%) 1 file
*.gradle164 LOC (2%) 5 files
*.json34 LOC (<1%) 1 file
*.storyboard27 LOC (<1%) 1 file
*.xib26 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2024-04-03 14:35