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
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.

main9605 LOC (77%) 51 files
test1983 LOC (15%) 17 files
generated84 LOC (<1%) 1 file
build and deployment204 LOC (1%) 2 files
other569 LOC (4%) 18 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 51 files match defined criteria (9,605 LOC, 100.0% vs. main code):
    • 35 *.h files (7,296 LOC)
    • 2 *.cpp files (1,660 LOC)
    • 7 *.java files (505 LOC)
    • 5 *.py files (96 LOC)
    • 1 *.toml files (44 LOC)
    • 1 *.in files (4 LOC)
  • " *.h" is biggest, containing 75.96% of LOC.
  • " *.in" is smallest, containing 0.04% of LOC.


*.h7296 LOC (75%) 35 files
*.cpp1660 LOC (17%) 2 files
*.java505 LOC (5%) 7 files
*.py96 LOC (<1%) 5 files
*.toml44 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]est/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/[Tt]ests/.*".
  • 17 files match defined criteria (1,983 LOC, 20.6% vs. main code):
    • 6 *.py files (882 LOC)
    • 5 *.java files (701 LOC)
    • 6 *.cpp files (400 LOC)
  • " *.py" is biggest, containing 44.48% of LOC.
  • " *.cpp" is smallest, containing 20.17% of LOC.


*.py882 LOC (44%) 6 files
*.java701 LOC (35%) 5 files
*.cpp400 LOC (20%) 6 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, 0.9% 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 ".*/pom[.]xml".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitmodules".
  • 2 files match defined criteria (204 LOC, 2.1% 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 ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*[.]ini".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]svg".
  • 18 files match defined criteria (569 LOC, 5.9% vs. main code):
    • 5 *.md files (326 LOC)
    • 11 *.txt files (191 LOC)
    • 1 *.ini files (29 LOC)
    • 1 *.json files (23 LOC)
  • " *.md" is biggest, containing 57.29% of LOC.
  • " *.json" is smallest, containing 4.04% of LOC.


*.md326 LOC (57%) 5 files
*.txt191 LOC (33%) 11 files
*.ini29 LOC (5%) 1 file
*.json23 LOC (4%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 12:41