Uber / rides-ios-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
plist
storyboard
podspec
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.

main10254 LOC (70%) 114 files
test0 LOC (0%) 0 files
generated0 LOC (0%) 0 files
build and deployment9 LOC (<1%) 2 files
other4357 LOC (29%) 99 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 ".*".
  • 114 files match defined criteria (10,254 LOC, 100.0% vs. main code):
    • 109 *.swift files (10,224 LOC)
    • 1 *.rb files (19 LOC)
    • 3 *.h files (10 LOC)
    • 1 *.m files (1 LOC)
  • " *.swift" is biggest, containing 99.71% of LOC.
  • " *.m" is smallest, containing 0.01% of LOC.


*.swift10224 LOC (99%) 109 files
*.rb19 LOC (<1%) 1 file
*.h10 LOC (<1%) 3 files
*.m1 LOC (<1%) 1 file
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 ".*[.]podspec".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 2 files match defined criteria (9 LOC, 0.1% vs. main code). All matches are in *.podspec files.


*.podspec9 LOC (100%) 2 files
Other Code
plist
storyboard
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]storyboard".
    • files with paths like ".*[.]plist".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]txt".
  • 99 files match defined criteria (4,357 LOC, 42.5% vs. main code):
    • 15 *.swift files (1,023 LOC)
    • 36 *.json files (891 LOC)
    • 12 *.m files (838 LOC)
    • 3 *.md files (628 LOC)
    • 17 *.plist files (485 LOC)
    • 6 *.storyboard files (444 LOC)
    • 10 *.h files (48 LOC)
  • " *.swift" is biggest, containing 23.48% of LOC.
  • " *.h" is smallest, containing 1.1% of LOC.


*.swift1023 LOC (23%) 15 files
*.json891 LOC (20%) 36 files
*.m838 LOC (19%) 12 files
*.md628 LOC (14%) 3 files
*.plist485 LOC (11%) 17 files
*.storyboard444 LOC (10%) 6 files
*.h48 LOC (1%) 10 files
Analyzers
Info about analyzers used for source code examinations.


2024-04-03 14:33