uber / ios-snapshot-test-case
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
clang-format
txt
podspec
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.

main1337 LOC (51%) 18 files
test0 LOC (0%) 0 files
generated0 LOC (0%) 0 files
build and deployment112 LOC (4%) 2 files
other1137 LOC (43%) 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 ".*".
  • 18 files match defined criteria (1,337 LOC, 100.0% vs. main code):
    • 9 *.m files (1,047 LOC)
    • 7 *.h files (197 LOC)
    • 2 *.swift files (93 LOC)
  • " *.m" is biggest, containing 78.31% of LOC.
  • " *.swift" is smallest, containing 6.96% of LOC.


*.m1047 LOC (78%) 9 files
*.h197 LOC (14%) 7 files
*.swift93 LOC (6%) 2 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]podspec".
    • files with paths like ".*[.]sh".
  • 2 files match defined criteria (112 LOC, 8.4% vs. main code):
    • 1 *.sh files (79 LOC)
    • 1 *.podspec files (33 LOC)
  • " *.sh" is biggest, containing 70.54% of LOC.
  • " *.podspec" is smallest, containing 29.46% of LOC.


*.sh79 LOC (70%) 1 file
*.podspec33 LOC (29%) 1 file
Other Code
plist
storyboard
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]plist".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]storyboard".
    • files with paths like ".*[.]txt".
  • 35 files match defined criteria (1,137 LOC, 85.0% vs. main code):
    • 14 *.plist files (360 LOC)
    • 7 *.json files (328 LOC)
    • 2 *.md files (182 LOC)
    • 3 *.m files (101 LOC)
    • 6 *.swift files (88 LOC)
    • 2 *.storyboard files (74 LOC)
    • 1 *.h files (4 LOC)
  • " *.plist" is biggest, containing 31.66% of LOC.
  • " *.h" is smallest, containing 0.35% of LOC.


*.plist360 LOC (31%) 14 files
*.json328 LOC (28%) 7 files
*.md182 LOC (16%) 2 files
*.m101 LOC (8%) 3 files
*.swift88 LOC (7%) 6 files
*.storyboard74 LOC (6%) 2 files
*.h4 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-03 07:36