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

main9786 LOC (50%) 203 files
test8898 LOC (45%) 154 files
generated0 LOC (0%) 0 files
build and deployment0 LOC (0%) 0 files
other872 LOC (4%) 20 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 ".*".
  • 203 files match defined criteria (9,786 LOC, 100.0% vs. main code):
    • 188 *.swift files (9,022 LOC)
    • 8 *.rb files (721 LOC)
    • 1 *.gemspec files (17 LOC)
    • 4 *.h files (15 LOC)
    • 1 *.yaml files (7 LOC)
    • 1 *.m files (4 LOC)
  • " *.swift" is biggest, containing 92.19% of LOC.
  • " *.m" is smallest, containing 0.04% of LOC.


*.swift9022 LOC (92%) 188 files
*.rb721 LOC (7%) 8 files
*.gemspec17 LOC (<1%) 1 file
*.h15 LOC (<1%) 4 files
*.yaml7 LOC (<1%) 1 file
*.m4 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]ests/.*".
    • files with paths like ".*/TestData/.*".
  • 154 files match defined criteria (8,898 LOC, 90.9% vs. main code). All matches are in *.swift files.


*.swift8898 LOC (100%) 154 files
Other Code
storyboard
plist
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 ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]storyboard".
    • files with paths like ".*[.]plist".
    • files with paths like ".*[.]txt".
  • 20 files match defined criteria (872 LOC, 8.9% vs. main code):
    • 3 *.md files (439 LOC)
    • 8 *.json files (262 LOC)
    • 4 *.storyboard files (94 LOC)
    • 5 *.plist files (77 LOC)
  • " *.md" is biggest, containing 50.34% of LOC.
  • " *.plist" is smallest, containing 8.83% of LOC.


*.md439 LOC (50%) 3 files
*.json262 LOC (30%) 8 files
*.storyboard94 LOC (10%) 4 files
*.plist77 LOC (8%) 5 files
Analyzers
Info about analyzers used for source code examinations.


2025-01-17 11:39