spotify / luigi
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
cfg
txt
ini
properties
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.

main20093 LOC (44%) 119 files
test21772 LOC (48%) 147 files
generated0 LOC (0%) 0 files
build and deployment83 LOC (<1%) 4 files
other3141 LOC (6%) 39 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 119 files match defined criteria (20,093 LOC, 100.0% vs. main code):
    • 103 *.py files (16,443 LOC)
    • 6 *.js files (2,396 LOC)
    • 6 *.html files (861 LOC)
    • 2 *.css files (210 LOC)
    • 1 *.toml files (176 LOC)
    • 1 *.yaml files (7 LOC)
  • " *.py" is biggest, containing 81.83% of LOC.
  • " *.yaml" is smallest, containing 0.03% of LOC.


*.py16443 LOC (81%) 103 files
*.js2396 LOC (11%) 6 files
*.html861 LOC (4%) 6 files
*.css210 LOC (1%) 2 files
*.toml176 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.
cfg
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 ".*/test[.].*".
    • files with paths like ".*/test_.*".
  • 147 files match defined criteria (21,772 LOC, 108.4% vs. main code):
    • 137 *.py files (21,335 LOC)
    • 2 *.js files (362 LOC)
    • 4 *.toml files (29 LOC)
    • 2 *.cfg files (23 LOC)
    • 1 *.html files (15 LOC)
    • 1 *.xml files (8 LOC)
  • " *.py" is biggest, containing 97.99% of LOC.
  • " *.xml" is smallest, containing 0.04% of LOC.


*.py21335 LOC (97%) 137 files
*.js362 LOC (1%) 2 files
*.toml29 LOC (<1%) 4 files
*.cfg23 LOC (<1%) 2 files
*.html15 LOC (<1%) 1 file
*.xml8 LOC (<1%) 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 4 files match defined criteria (83 LOC, 0.4% vs. main code). All matches are in *.sh files.


*.sh83 LOC (100%) 4 files
Other Code
ini
properties
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]ini".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]properties".
  • 39 files match defined criteria (3,141 LOC, 15.6% vs. main code):
    • 16 *.rst files (2,378 LOC)
    • 18 *.py files (603 LOC)
    • 1 *.ini files (108 LOC)
    • 1 *.toml files (42 LOC)
    • 1 *.properties files (6 LOC)
    • 1 *.md files (3 LOC)
    • 1 *.txt files (1 LOC)
  • " *.rst" is biggest, containing 75.71% of LOC.
  • " *.txt" is smallest, containing 0.03% of LOC.


*.rst2378 LOC (75%) 16 files
*.py603 LOC (19%) 18 files
*.ini108 LOC (3%) 1 file
*.toml42 LOC (1%) 1 file
*.properties6 LOC (<1%) 1 file
*.md3 LOC (<1%) 1 file
*.txt1 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 12:37