spotify / pedalboard
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
ml
mli
texi
txt
m4
pyi
mk
plist
f
f03
tex
eps
gitmodules
ini
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.

main20471 LOC (79%) 97 files
test4179 LOC (16%) 40 files
generated0 LOC (0%) 0 files
build and deployment0 LOC (0%) 0 files
other1078 LOC (4%) 19 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 ".*".
  • 97 files match defined criteria (20,471 LOC, 100.0% vs. main code):
    • 54 *.h files (10,669 LOC)
    • 16 *.cpp files (6,942 LOC)
    • 8 *.py files (1,523 LOC)
    • 4 *.pyi files (1,204 LOC)
    • 12 *.mm files (98 LOC)
    • 1 *.toml files (20 LOC)
    • 1 *.in files (8 LOC)
    • 1 *.yaml files (7 LOC)
  • " *.h" is biggest, containing 52.12% of LOC.
  • " *.yaml" is smallest, containing 0.03% of LOC.


*.h10669 LOC (52%) 54 files
*.cpp6942 LOC (33%) 16 files
*.py1523 LOC (7%) 8 files
*.pyi1204 LOC (5%) 4 files
*.mm98 LOC (<1%) 12 files
*.toml20 LOC (<1%) 1 file
*.in8 LOC (<1%) 1 file
*.yaml7 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_.*".
  • 40 files match defined criteria (4,179 LOC, 20.4% vs. main code). All matches are in *.py files.


*.py4179 LOC (100%) 40 files
Other Code
plist
ini
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]texi".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]plist".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]ini".
  • 19 files match defined criteria (1,078 LOC, 5.3% vs. main code):
    • 7 *.md files (523 LOC)
    • 4 *.plist files (259 LOC)
    • 3 *.py files (204 LOC)
    • 1 *.ini files (49 LOC)
    • 4 *.txt files (43 LOC)
  • " *.md" is biggest, containing 48.52% of LOC.
  • " *.txt" is smallest, containing 3.99% of LOC.


*.md523 LOC (48%) 7 files
*.plist259 LOC (24%) 4 files
*.py204 LOC (18%) 3 files
*.ini49 LOC (4%) 1 file
*.txt43 LOC (3%) 4 files
Analyzers
Info about analyzers used for source code examinations.


2025-01-17 11:40