spotify / SPTPersistentCache
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
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.

main2229 LOC (33%) 43 files
test2710 LOC (40%) 17 files
generated0 LOC (0%) 0 files
build and deployment173 LOC (2%) 3 files
other1526 LOC (22%) 15 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 ".*".
  • 43 files match defined criteria (2,229 LOC, 100.0% vs. main code):
    • 19 *.m files (1,825 LOC)
    • 23 *.h files (325 LOC)
    • 1 *.c files (79 LOC)
  • " *.m" is biggest, containing 81.88% of LOC.
  • " *.c" is smallest, containing 3.54% of LOC.


*.m1825 LOC (81%) 19 files
*.h325 LOC (14%) 23 files
*.c79 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]ests/.*".
  • 17 files match defined criteria (2,710 LOC, 121.6% vs. main code):
    • 14 *.m files (2,687 LOC)
    • 3 *.h files (23 LOC)
  • " *.m" is biggest, containing 99.15% of LOC.
  • " *.h" is smallest, containing 0.85% of LOC.


*.m2687 LOC (99%) 14 files
*.h23 LOC (<1%) 3 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 ".*[.]podspec".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 3 files match defined criteria (173 LOC, 7.8% vs. main code):
    • 2 *.sh files (148 LOC)
    • 1 *.podspec files (25 LOC)
  • " *.sh" is biggest, containing 85.55% of LOC.
  • " *.podspec" is smallest, containing 14.45% of LOC.


*.sh148 LOC (85%) 2 files
*.podspec25 LOC (14%) 1 file
Other Code
storyboard
plist
txt
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 ".*[.]txt".
    • files with paths like ".*[.]plist".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]xib".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]storyboard".
  • 15 files match defined criteria (1,526 LOC, 68.5% vs. main code):
    • 2 *.xib files (919 LOC)
    • 3 *.md files (158 LOC)
    • 2 *.storyboard files (155 LOC)
    • 5 *.plist files (151 LOC)
    • 2 *.json files (126 LOC)
    • 1 *.txt files (17 LOC)
  • " *.xib" is biggest, containing 60.22% of LOC.
  • " *.txt" is smallest, containing 1.11% of LOC.


*.xib919 LOC (60%) 2 files
*.md158 LOC (10%) 3 files
*.storyboard155 LOC (10%) 2 files
*.plist151 LOC (9%) 5 files
*.json126 LOC (8%) 2 files
*.txt17 LOC (1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-01-17 11:37