netflix / dispatch
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
mdx
mjml
txt
in
mako
ini
gitattributes
editorconfig
sass
npmrc
cfg
eps
lua
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.

main118780 LOC (82%) 1,182 files
test7299 LOC (5%) 78 files
generated8640 LOC (5%) 1 file
build and deployment8 LOC (<1%) 1 file
other9505 LOC (6%) 12 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
mjml
mako
in
cfg
sass
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1182 files match defined criteria (118,780 LOC, 100.0% vs. main code):
    • 626 *.py files (49,049 LOC)
    • 410 *.vue files (47,822 LOC)
    • 121 *.js files (20,730 LOC)
    • 2 *.sql files (310 LOC)
    • 5 *.mjml files (259 LOC)
    • 2 *.scss files (168 LOC)
    • 5 *.ts files (155 LOC)
    • 2 *.css files (118 LOC)
    • 1 *.toml files (57 LOC)
    • 2 *.mako files (34 LOC)
    • 3 *.in files (27 LOC)
    • 1 *.html files (22 LOC)
    • 1 *.cfg files (15 LOC)
    • 1 *.sass files (14 LOC)
  • " *.py" is biggest, containing 41.29% of LOC.
  • " *.sass" is smallest, containing 0.01% of LOC.


*.py49049 LOC (41%) 626 files
*.vue47822 LOC (40%) 410 files
*.js20730 LOC (17%) 121 files
*.sql310 LOC (<1%) 2 files
*.mjml259 LOC (<1%) 5 files
*.scss168 LOC (<1%) 2 files
*.ts155 LOC (<1%) 5 files
*.css118 LOC (<1%) 2 files
*.toml57 LOC (<1%) 1 file
*.mako34 LOC (<1%) 2 files
*.in27 LOC (<1%) 3 files
*.html22 LOC (<1%) 1 file
*.cfg15 LOC (<1%) 1 file
*.sass14 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
lua
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[.]spec[.]js".
    • files with paths like ".*[.]spec[.]ts".
    • files with paths like ".*/vitest[.].*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/e2e/.*".
    • files with paths like ".*/testing[.].*".
  • 78 files match defined criteria (7,299 LOC, 6.1% vs. main code):
    • 57 *.py files (5,705 LOC)
    • 14 *.ts files (1,010 LOC)
    • 6 *.js files (549 LOC)
    • 1 *.lua files (35 LOC)
  • " *.py" is biggest, containing 78.16% of LOC.
  • " *.lua" is smallest, containing 0.48% of LOC.


*.py5705 LOC (78%) 57 files
*.ts1010 LOC (13%) 14 files
*.js549 LOC (7%) 6 files
*.lua35 LOC (<1%) 1 file
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*[.](ps|eps|pfa)".
  • 1 file matches defined criteria (8,640 LOC, 7.3% vs. main code). All matches are in *.json files.


*.json8640 LOC (100%) 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 ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
  • 1 file matches defined criteria (8 LOC, 0.0% vs. main code). All matches are in *.sh files.


*.sh8 LOC (100%) 1 file
Other Code
txt
ini
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]npmrc".
    • files with paths like ".*[.]ini".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]mdx".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/[.]dockerignore".
  • 12 files match defined criteria (9,505 LOC, 8.0% vs. main code):
    • 3 *.json files (8,755 LOC)
    • 4 *.txt files (665 LOC)
    • 2 *.ini files (70 LOC)
    • 1 *.md files (13 LOC)
    • 2 *.svg files (2 LOC)
  • " *.json" is biggest, containing 92.11% of LOC.
  • " *.svg" is smallest, containing 0.02% of LOC.


*.json8755 LOC (92%) 3 files
*.txt665 LOC (6%) 4 files
*.ini70 LOC (<1%) 2 files
*.md13 LOC (<1%) 1 file
*.svg2 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-02 23:45