spotify / basic-pitch
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
in
ini
txt
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.

main3578 LOC (66%) 31 files
test1373 LOC (25%) 17 files
generated0 LOC (0%) 0 files
build and deployment0 LOC (0%) 0 files
other416 LOC (7%) 9 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 ".*".
  • 31 files match defined criteria (3,578 LOC, 100.0% vs. main code):
    • 28 *.py files (3,479 LOC)
    • 1 *.toml files (86 LOC)
    • 1 *.yaml files (7 LOC)
    • 1 *.in files (6 LOC)
  • " *.py" is biggest, containing 97.23% of LOC.
  • " *.in" is smallest, containing 0.17% of LOC.


*.py3479 LOC (97%) 28 files
*.toml86 LOC (2%) 1 file
*.yaml7 LOC (<1%) 1 file
*.in6 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/.*".
  • 17 files match defined criteria (1,373 LOC, 38.4% vs. main code):
    • 13 *.py files (945 LOC)
    • 4 *.yaml files (428 LOC)
  • " *.py" is biggest, containing 68.83% of LOC.
  • " *.yaml" is smallest, containing 31.17% of LOC.


*.py945 LOC (68%) 13 files
*.yaml428 LOC (31%) 4 files
Other Code
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 ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]ini".
    • files with paths like ".*[.]txt".
  • 9 files match defined criteria (416 LOC, 11.6% vs. main code):
    • 6 *.md files (295 LOC)
    • 1 *.ini files (65 LOC)
    • 2 *.json files (56 LOC)
  • " *.md" is biggest, containing 70.91% of LOC.
  • " *.json" is smallest, containing 13.46% of LOC.


*.md295 LOC (70%) 6 files
*.ini65 LOC (15%) 1 file
*.json56 LOC (13%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-01-17 11:39