spotify / voyager
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
txt
clang-format
pyi
in
ini
gitmodules
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.

main6895 LOC (73%) 42 files
test1783 LOC (18%) 14 files
generated84 LOC (<1%) 1 file
build and deployment204 LOC (2%) 2 files
other437 LOC (4%) 12 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
pyi
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 42 files match defined criteria (6,895 LOC, 100.0% vs. main code):
    • 21 *.h files (3,878 LOC)
    • 2 *.cpp files (1,626 LOC)
    • 9 *.py files (666 LOC)
    • 7 *.java files (505 LOC)
    • 1 *.pyi files (208 LOC)
    • 1 *.toml files (8 LOC)
    • 1 *.in files (4 LOC)
  • " *.h" is biggest, containing 56.24% of LOC.
  • " *.in" is smallest, containing 0.06% of LOC.


*.h3878 LOC (56%) 21 files
*.cpp1626 LOC (23%) 2 files
*.py666 LOC (9%) 9 files
*.java505 LOC (7%) 7 files
*.pyi208 LOC (3%) 1 file
*.toml8 LOC (<1%) 1 file
*.in4 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 ".*/test_.*".
    • files with paths like ".*/[Tt]est/.*".
  • 14 files match defined criteria (1,783 LOC, 25.9% vs. main code):
    • 6 *.py files (882 LOC)
    • 5 *.java files (701 LOC)
    • 3 *.cpp files (200 LOC)
  • " *.py" is biggest, containing 49.47% of LOC.
  • " *.cpp" is smallest, containing 11.22% of LOC.


*.py882 LOC (49%) 6 files
*.java701 LOC (39%) 5 files
*.cpp200 LOC (11%) 3 files
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]h" AND any line of content like ".* DO NOT EDIT THIS FILE [-] it is machine generated .*".
    • files with any line of content like "\<\!\-\-[ ]*Generated by .*".
    • files with paths like ".*[.](html|html|xhtml)" AND any line of content like "[ ]*[<]meta name[=]"generator" .*".
  • 1 file matches defined criteria (84 LOC, 1.2% vs. main code). All matches are in *.h files.


*.h84 LOC (100%) 1 file
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 ".*[.]sh".
    • files with paths like ".*/pom[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*/[.]gitignore".
  • 2 files match defined criteria (204 LOC, 3.0% vs. main code):
    • 1 *.xml files (203 LOC)
    • 1 *.sh files (1 LOC)
  • " *.xml" is biggest, containing 99.51% of LOC.
  • " *.sh" is smallest, containing 0.49% of LOC.


*.xml203 LOC (99%) 1 file
*.sh1 LOC (<1%) 1 file
Other Code
txt
ini
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 ".*[.]txt".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*[.]ini".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
  • 12 files match defined criteria (437 LOC, 6.3% vs. main code):
    • 4 *.md files (303 LOC)
    • 6 *.txt files (71 LOC)
    • 1 *.ini files (43 LOC)
    • 1 *.json files (20 LOC)
  • " *.md" is biggest, containing 69.34% of LOC.
  • " *.json" is smallest, containing 4.58% of LOC.


*.md303 LOC (69%) 4 files
*.txt71 LOC (16%) 6 files
*.ini43 LOC (9%) 1 file
*.json20 LOC (4%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-01-17 11:39