spotify / lemur
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
ini
jshintrc
cfg
gitattributes
mako
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.

main23294 LOC (76%) 311 files
test6231 LOC (20%) 75 files
generated0 LOC (0%) 0 files
build and deployment0 LOC (0%) 0 files
other1094 LOC (3%) 11 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
in
mako
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 311 files match defined criteria (23,294 LOC, 100.0% vs. main code):
    • 238 *.py files (17,798 LOC)
    • 61 *.html files (4,928 LOC)
    • 4 *.js files (306 LOC)
    • 1 *.css files (166 LOC)
    • 5 *.in files (69 LOC)
    • 1 *.mako files (15 LOC)
    • 1 *.cfg files (12 LOC)
  • " *.py" is biggest, containing 76.41% of LOC.
  • " *.cfg" is smallest, containing 0.05% of LOC.


*.py17798 LOC (76%) 238 files
*.html4928 LOC (21%) 61 files
*.js306 LOC (1%) 4 files
*.css166 LOC (<1%) 1 file
*.in69 LOC (<1%) 5 files
*.mako15 LOC (<1%) 1 file
*.cfg12 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 ".*/karma[.]conf[.]js".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
  • 75 files match defined criteria (6,231 LOC, 26.7% vs. main code):
    • 68 *.py files (6,127 LOC)
    • 6 *.js files (94 LOC)
    • 1 *.html files (10 LOC)
  • " *.py" is biggest, containing 98.33% of LOC.
  • " *.html" is smallest, containing 0.16% of LOC.


*.py6127 LOC (98%) 68 files
*.js94 LOC (1%) 6 files
*.html10 LOC (<1%) 1 file
Other Code
txt
ini
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]ini".
    • files with paths like ".*/README[.][a-z0-9]+".
  • 11 files match defined criteria (1,094 LOC, 4.7% vs. main code):
    • 5 *.txt files (685 LOC)
    • 2 *.rst files (252 LOC)
    • 2 *.json files (121 LOC)
    • 2 *.ini files (36 LOC)
  • " *.txt" is biggest, containing 62.61% of LOC.
  • " *.ini" is smallest, containing 3.29% of LOC.


*.txt685 LOC (62%) 5 files
*.rst252 LOC (23%) 2 files
*.json121 LOC (11%) 2 files
*.ini36 LOC (3%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-01-17 11:39