Uber / peloton
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
cql
proto
txt
ini
cfg
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.

main117194 LOC (46%) 800 files
test131235 LOC (52%) 541 files
generated0 LOC (0%) 0 files
build and deployment915 LOC (<1%) 36 files
other2412 LOC (<1%) 21 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
cql
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 800 files match defined criteria (117,194 LOC, 100.0% vs. main code):
    • 584 *.go files (82,131 LOC)
    • 37 *.py files (18,450 LOC)
    • 53 *.proto files (13,029 LOC)
    • 53 *.yaml files (1,913 LOC)
    • 2 *.thrift files (1,139 LOC)
    • 70 *.cql files (519 LOC)
    • 1 *.yml files (13 LOC)
  • " *.go" is biggest, containing 70.08% of LOC.
  • " *.yml" is smallest, containing 0.01% of LOC.


*.go82131 LOC (70%) 584 files
*.py18450 LOC (15%) 37 files
*.proto13029 LOC (11%) 53 files
*.yaml1913 LOC (1%) 53 files
*.thrift1139 LOC (<1%) 2 files
*.cql519 LOC (<1%) 70 files
*.yml13 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 ".*/test_.*".
    • files with paths like ".*/[Tt]est/.*".
  • 541 files match defined criteria (131,235 LOC, 112.0% vs. main code):
    • 372 *.go files (114,449 LOC)
    • 85 *.py files (12,489 LOC)
    • 75 *.yaml files (3,922 LOC)
    • 8 *.sh files (372 LOC)
    • 1 *.cfg files (3 LOC)
  • " *.go" is biggest, containing 87.21% of LOC.
  • " *.cfg" is smallest, containing 0% of LOC.


*.go114449 LOC (87%) 372 files
*.py12489 LOC (9%) 85 files
*.yaml3922 LOC (2%) 75 files
*.sh372 LOC (<1%) 8 files
*.cfg3 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 ".*/glide[.]yaml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
  • 36 files match defined criteria (915 LOC, 0.8% vs. main code):
    • 35 *.sh files (799 LOC)
    • 1 *.yaml files (116 LOC)
  • " *.sh" is biggest, containing 87.32% of LOC.
  • " *.yaml" is smallest, containing 12.68% of LOC.


*.sh799 LOC (87%) 35 files
*.yaml116 LOC (12%) 1 file
Other Code
txt
ini
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]ini".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*/[Ee]xamples/.*".
  • 21 files match defined criteria (2,412 LOC, 2.1% vs. main code):
    • 9 *.md files (2,035 LOC)
    • 3 *.go files (164 LOC)
    • 2 *.json files (142 LOC)
    • 6 *.txt files (59 LOC)
    • 1 *.ini files (12 LOC)
  • " *.md" is biggest, containing 84.37% of LOC.
  • " *.ini" is smallest, containing 0.5% of LOC.


*.md2035 LOC (84%) 9 files
*.go164 LOC (6%) 3 files
*.json142 LOC (5%) 2 files
*.txt59 LOC (2%) 6 files
*.ini12 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2024-04-03 14:35