spotify / klio
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
in
tpl
ini
cfg
proto
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.

main12585 LOC (40%) 175 files
test13437 LOC (43%) 117 files
generated0 LOC (0%) 0 files
build and deployment44 LOC (<1%) 3 files
other4699 LOC (15%) 70 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
tpl
proto
in
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 175 files match defined criteria (12,585 LOC, 100.0% vs. main code):
    • 130 *.py files (11,466 LOC)
    • 11 *.tpl files (364 LOC)
    • 2 *.css files (202 LOC)
    • 6 *.yaml files (188 LOC)
    • 1 *.proto files (102 LOC)
    • 1 *.html files (102 LOC)
    • 18 *.in files (92 LOC)
    • 6 *.cfg files (69 LOC)
  • " *.py" is biggest, containing 91.11% of LOC.
  • " *.cfg" is smallest, containing 0.55% of LOC.


*.py11466 LOC (91%) 130 files
*.tpl364 LOC (2%) 11 files
*.css202 LOC (1%) 2 files
*.yaml188 LOC (1%) 6 files
*.proto102 LOC (<1%) 1 file
*.html102 LOC (<1%) 1 file
*.in92 LOC (<1%) 18 files
*.cfg69 LOC (<1%) 6 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
tpl
in
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 ".*_test[.].*".
    • files with paths like ".*/test[.].*".
  • 117 files match defined criteria (13,437 LOC, 106.8% vs. main code):
    • 108 *.py files (13,199 LOC)
    • 7 *.yaml files (218 LOC)
    • 1 *.tpl files (19 LOC)
    • 1 *.in files (1 LOC)
  • " *.py" is biggest, containing 98.23% of LOC.
  • " *.in" is smallest, containing 0.01% of LOC.


*.py13199 LOC (98%) 108 files
*.yaml218 LOC (1%) 7 files
*.tpl19 LOC (<1%) 1 file
*.in1 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".
  • 3 files match defined criteria (44 LOC, 0.3% vs. main code). All matches are in *.sh files.


*.sh44 LOC (100%) 3 files
Other Code
txt
ini
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]ini".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/[.]gitignore".
  • 70 files match defined criteria (4,699 LOC, 37.3% vs. main code):
    • 22 *.txt files (1,702 LOC)
    • 13 *.rst files (977 LOC)
    • 3 *.json files (878 LOC)
    • 7 *.ini files (471 LOC)
    • 9 *.py files (415 LOC)
    • 9 *.md files (139 LOC)
    • 3 *.svg files (82 LOC)
    • 1 *.yaml files (24 LOC)
    • 3 *.in files (11 LOC)
  • " *.txt" is biggest, containing 36.22% of LOC.
  • " *.in" is smallest, containing 0.23% of LOC.


*.txt1702 LOC (36%) 22 files
*.rst977 LOC (20%) 13 files
*.json878 LOC (18%) 3 files
*.ini471 LOC (10%) 7 files
*.py415 LOC (8%) 9 files
*.md139 LOC (2%) 9 files
*.svg82 LOC (1%) 3 files
*.yaml24 LOC (<1%) 1 file
*.in11 LOC (<1%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2025-01-17 11:39