spotify / scio
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
proto
st
txt
properties
pb
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.

main55709 LOC (51%) 652 files
test32617 LOC (30%) 257 files
generated0 LOC (0%) 0 files
build and deployment112 LOC (<1%) 5 files
other19379 LOC (17%) 257 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
st
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 652 files match defined criteria (55,709 LOC, 100.0% vs. main code):
    • 532 *.scala files (41,162 LOC)
    • 106 *.java files (12,117 LOC)
    • 4 *.sbt files (1,950 LOC)
    • 3 *.py files (387 LOC)
    • 2 *.xml files (46 LOC)
    • 2 *.st files (18 LOC)
    • 1 *.avsc files (17 LOC)
    • 2 *.yaml files (12 LOC)
  • " *.scala" is biggest, containing 73.89% of LOC.
  • " *.yaml" is smallest, containing 0.02% of LOC.


*.scala41162 LOC (73%) 532 files
*.java12117 LOC (21%) 106 files
*.sbt1950 LOC (3%) 4 files
*.py387 LOC (<1%) 3 files
*.xml46 LOC (<1%) 2 files
*.st18 LOC (<1%) 2 files
*.avsc17 LOC (<1%) 1 file
*.yaml12 LOC (<1%) 2 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
proto
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/[Tt]ests/.*".
  • 257 files match defined criteria (32,617 LOC, 58.5% vs. main code):
    • 206 *.scala files (26,360 LOC)
    • 38 *.java files (5,909 LOC)
    • 8 *.avsc files (274 LOC)
    • 5 *.proto files (74 LOC)
  • " *.scala" is biggest, containing 80.82% of LOC.
  • " *.proto" is smallest, containing 0.23% of LOC.


*.scala26360 LOC (80%) 206 files
*.java5909 LOC (18%) 38 files
*.avsc274 LOC (<1%) 8 files
*.proto74 LOC (<1%) 5 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
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 ".*[.]sh".
  • 5 files match defined criteria (112 LOC, 0.2% vs. main code). All matches are in *.sh files.


*.sh112 LOC (100%) 5 files
Other Code
pb
properties
txt
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 ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]pb".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ee]xamples/.*".
  • 257 files match defined criteria (19,379 LOC, 34.8% vs. main code):
    • 64 *.java files (6,971 LOC)
    • 74 *.md files (5,407 LOC)
    • 109 *.scala files (5,142 LOC)
    • 1 *.pb files (1,741 LOC)
    • 4 *.json files (83 LOC)
    • 2 *.cc files (32 LOC)
    • 2 *.properties files (2 LOC)
    • 1 *.txt files (1 LOC)
  • " *.java" is biggest, containing 35.97% of LOC.
  • " *.txt" is smallest, containing 0.01% of LOC.


*.java6971 LOC (35%) 64 files
*.md5407 LOC (27%) 74 files
*.scala5142 LOC (26%) 109 files
*.pb1741 LOC (8%) 1 file
*.json83 LOC (<1%) 4 files
*.cc32 LOC (<1%) 2 files
*.properties2 LOC (<1%) 2 files
*.txt1 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-01-17 11:38