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

main19999 LOC (44%) 120 files
test21772 LOC (48%) 147 files
generated0 LOC (0%) 0 files
build and deployment83 LOC (<1%) 4 files
other3177 LOC (7%) 39 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 ".*".
  • 120 files match defined criteria (19,999 LOC, 100.0% vs. main code):
    • 104 *.py files (16,519 LOC)
    • 6 *.js files (2,396 LOC)
    • 6 *.html files (861 LOC)
    • 2 *.css files (210 LOC)
    • 1 *.yaml files (7 LOC)
    • 1 *.in files (6 LOC)
  • " *.py" is biggest, containing 82.6% of LOC.
  • " *.in" is smallest, containing 0.03% of LOC.


*.py16519 LOC (82%) 104 files
*.js2396 LOC (11%) 6 files
*.html861 LOC (4%) 6 files
*.css210 LOC (1%) 2 files
*.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.
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.9% 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
  • 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 ".*[.]json".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]ini".
    • files with paths like ".*/README[.][a-z0-9]+".
  • 39 files match defined criteria (3,177 LOC, 15.9% vs. main code):
    • 16 *.rst files (2,375 LOC)
    • 18 *.py files (603 LOC)
    • 1 *.ini files (147 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 74.76% of LOC.
  • " *.txt" is smallest, containing 0.03% of LOC.


*.rst2375 LOC (74%) 16 files
*.py603 LOC (18%) 18 files
*.ini147 LOC (4%) 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-01-17 11:37