uber / zanzibar
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
lua
txt
proto
editorconfig
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.

main19964 LOC (10%) 77 files
test22085 LOC (11%) 74 files
generated53213 LOC (27%) 53 files
build and deployment530 LOC (<1%) 5 files
other94552 LOC (49%) 508 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
lua
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 77 files match defined criteria (19,964 LOC, 100.0% vs. main code):
    • 60 *.go files (19,682 LOC)
    • 1 *.js files (163 LOC)
    • 12 *.yaml files (108 LOC)
    • 4 *.lua files (11 LOC)
  • " *.go" is biggest, containing 98.59% of LOC.
  • " *.lua" is smallest, containing 0.06% of LOC.


*.go19682 LOC (98%) 60 files
*.js163 LOC (<1%) 1 file
*.yaml108 LOC (<1%) 12 files
*.lua11 LOC (<1%) 4 files
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 ".*_test[.].*".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*_mock[.][a-zA-Z0-9_\-]+".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/test_.*".
  • 74 files match defined criteria (22,085 LOC, 110.6% vs. main code):
    • 72 *.go files (22,043 LOC)
    • 2 *.yaml files (42 LOC)
  • " *.go" is biggest, containing 99.81% of LOC.
  • " *.yaml" is smallest, containing 0.19% of LOC.


*.go22043 LOC (99%) 72 files
*.yaml42 LOC (<1%) 2 files
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 ".*/gen-code/.*".
  • 53 files match defined criteria (53,213 LOC, 266.5% vs. main code). All matches are in *.go files.


*.go53213 LOC (100%) 53 files
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 ".*/glide[.]yaml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[.]json".
  • 5 files match defined criteria (530 LOC, 2.7% vs. main code):
    • 4 *.sh files (415 LOC)
    • 1 *.yaml files (115 LOC)
  • " *.sh" is biggest, containing 78.3% of LOC.
  • " *.yaml" is smallest, containing 21.7% of LOC.


*.sh415 LOC (78%) 4 files
*.yaml115 LOC (21%) 1 file
Other Code
proto
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Dd]emos?/.*".
  • 508 files match defined criteria (94,552 LOC, 473.6% vs. main code):
    • 349 *.go files (87,672 LOC)
    • 94 *.yaml files (2,303 LOC)
    • 30 *.thrift files (1,975 LOC)
    • 26 *.json files (1,913 LOC)
    • 4 *.md files (606 LOC)
    • 3 *.proto files (45 LOC)
    • 2 *.txt files (38 LOC)
  • " *.go" is biggest, containing 92.72% of LOC.
  • " *.txt" is smallest, containing 0.04% of LOC.


*.go87672 LOC (92%) 349 files
*.yaml2303 LOC (2%) 94 files
*.thrift1975 LOC (2%) 30 files
*.json1913 LOC (2%) 26 files
*.md606 LOC (<1%) 4 files
*.proto45 LOC (<1%) 3 files
*.txt38 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2026-04-18 12:56