netflix / metaflow
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
rd
svelte
rmd
txt
in
cfg
ini
eslintignore
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.

main51789 LOC (69%) 328 files
test7075 LOC (9%) 117 files
generated6272 LOC (8%) 2 files
build and deployment107 LOC (<1%) 3 files
other8991 LOC (12%) 61 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
svelte
in
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 328 files match defined criteria (51,789 LOC, 100.0% vs. main code):
    • 272 *.py files (48,752 LOC)
    • 30 *.svelte files (1,405 LOC)
    • 6 *.ipynb files (634 LOC)
    • 8 *.ts files (519 LOC)
    • 1 *.html files (312 LOC)
    • 3 *.css files (144 LOC)
    • 2 *.in files (10 LOC)
    • 4 *.js files (7 LOC)
    • 1 *.cjs files (4 LOC)
    • 1 *.cfg files (2 LOC)
  • " *.py" is biggest, containing 94.14% of LOC.
  • " *.cfg" is smallest, containing 0% of LOC.


*.py48752 LOC (94%) 272 files
*.svelte1405 LOC (2%) 30 files
*.ipynb634 LOC (1%) 6 files
*.ts519 LOC (1%) 8 files
*.html312 LOC (<1%) 1 file
*.css144 LOC (<1%) 3 files
*.in10 LOC (<1%) 2 files
*.js7 LOC (<1%) 4 files
*.cjs4 LOC (<1%) 1 file
*.cfg2 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 ".*/test_.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/test[.].*".
  • 117 files match defined criteria (7,075 LOC, 13.7% vs. main code):
    • 115 *.py files (7,067 LOC)
    • 1 *.cfg files (5 LOC)
    • 1 *.sh files (3 LOC)
  • " *.py" is biggest, containing 99.89% of LOC.
  • " *.sh" is smallest, containing 0.04% of LOC.


*.py7067 LOC (99%) 115 files
*.cfg5 LOC (<1%) 1 file
*.sh3 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 ".*[.](html|html|xhtml)" AND any line of content like "[ ]*[<]meta name[=]"generator" .*".
  • 2 files match defined criteria (6,272 LOC, 12.1% vs. main code):
    • 1 *.json files (6,070 LOC)
    • 1 *.html files (202 LOC)
  • " *.json" is biggest, containing 96.78% of LOC.
  • " *.html" is smallest, containing 3.22% of LOC.


*.json6070 LOC (96%) 1 file
*.html202 LOC (3%) 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".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
  • 3 files match defined criteria (107 LOC, 0.2% vs. main code). All matches are in *.sh files.


*.sh107 LOC (100%) 3 files
Other Code
txt
ini
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]ini".
  • 61 files match defined criteria (8,991 LOC, 17.4% vs. main code):
    • 25 *.json files (8,257 LOC)
    • 30 *.md files (675 LOC)
    • 1 *.html files (33 LOC)
    • 4 *.txt files (21 LOC)
    • 1 *.ini files (5 LOC)
  • " *.json" is biggest, containing 91.84% of LOC.
  • " *.ini" is smallest, containing 0.06% of LOC.


*.json8257 LOC (91%) 25 files
*.md675 LOC (7%) 30 files
*.html33 LOC (<1%) 1 file
*.txt21 LOC (<1%) 4 files
*.ini5 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-02 23:45