uber / cosmo
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
mod
txt
tpl
proto
properties
eslintignore
mjs
hcl
npmignore
patch
editorconfig
npmrc
snap
prettierignore
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.

main169543 LOC (20%) 1,327 files
test108526 LOC (13%) 359 files
generated69869 LOC (8%) 36 files
build and deployment475 LOC (<1%) 32 files
other486303 LOC (58%) 461 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
tpl
mjs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1327 files match defined criteria (169,543 LOC, 100.0% vs. main code):
    • 522 *.ts files (79,012 LOC)
    • 229 *.tsx files (43,260 LOC)
    • 231 *.go files (31,970 LOC)
    • 87 *.yaml files (4,665 LOC)
    • 5 *.proto files (3,269 LOC)
    • 185 *.sql files (3,160 LOC)
    • 17 *.ftl files (816 LOC)
    • 14 *.js files (789 LOC)
    • 14 *.tf files (606 LOC)
    • 7 *.tpl files (565 LOC)
    • 5 *.css files (528 LOC)
    • 2 *.html files (393 LOC)
    • 3 *.mjs files (224 LOC)
    • 1 *.scss files (184 LOC)
    • 3 *.toml files (87 LOC)
    • 1 *.jsx files (13 LOC)
    • 1 *.xml files (2 LOC)
  • " *.ts" is biggest, containing 46.6% of LOC.
  • " *.xml" is smallest, containing 0% of LOC.


*.ts79012 LOC (46%) 522 files
*.tsx43260 LOC (25%) 229 files
*.go31970 LOC (18%) 231 files
*.yaml4665 LOC (2%) 87 files
*.proto3269 LOC (1%) 5 files
*.sql3160 LOC (1%) 185 files
*.ftl816 LOC (<1%) 17 files
*.js789 LOC (<1%) 14 files
*.tf606 LOC (<1%) 14 files
*.tpl565 LOC (<1%) 7 files
*.css528 LOC (<1%) 5 files
*.html393 LOC (<1%) 2 files
*.mjs224 LOC (<1%) 3 files
*.scss184 LOC (<1%) 1 file
*.toml87 LOC (<1%) 3 files
*.jsx13 LOC (<1%) 1 file
*.xml2 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 ".*/[Tt]est/.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*/vitest[.].*".
    • files with paths like ".*/test[-]data/.*".
    • files with paths like ".*__tests__.*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/e2e/.*".
  • 359 files match defined criteria (108,526 LOC, 64.0% vs. main code):
    • 147 *.ts files (69,270 LOC)
    • 146 *.go files (34,838 LOC)
    • 7 *.yaml files (2,519 LOC)
    • 38 *.graphql files (970 LOC)
    • 1 *.graphqls files (369 LOC)
    • 12 *.swift files (280 LOC)
    • 2 *.kt files (167 LOC)
    • 1 *.bat files (68 LOC)
    • 2 *.kts files (28 LOC)
    • 3 *.sh files (17 LOC)
  • " *.ts" is biggest, containing 63.83% of LOC.
  • " *.sh" is smallest, containing 0.02% of LOC.


*.ts69270 LOC (63%) 147 files
*.go34838 LOC (32%) 146 files
*.yaml2519 LOC (2%) 7 files
*.graphql970 LOC (<1%) 38 files
*.graphqls369 LOC (<1%) 1 file
*.swift280 LOC (<1%) 12 files
*.kt167 LOC (<1%) 2 files
*.bat68 LOC (<1%) 1 file
*.kts28 LOC (<1%) 2 files
*.sh17 LOC (<1%) 3 files
Generated Code
Automatically generated files, not manually changed after generation.
proto
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/generated/.*".
    • files with paths like ".*/gen/.*[.]go".
    • files with paths like ".*/package[-]lock[.]json".
  • 36 files match defined criteria (69,869 LOC, 41.2% vs. main code):
    • 32 *.go files (63,529 LOC)
    • 3 *.json files (5,874 LOC)
    • 1 *.proto files (466 LOC)
  • " *.go" is biggest, containing 90.93% of LOC.
  • " *.proto" is smallest, containing 0.67% of LOC.


*.go63529 LOC (90%) 32 files
*.json5874 LOC (8%) 3 files
*.proto466 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/pnpm.*[.]ya?ml".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/pom[.]xml".
  • 32 files match defined criteria (475 LOC, 0.3% vs. main code):
    • 30 *.sh files (449 LOC)
    • 1 *.yaml files (15 LOC)
    • 1 *.xml files (11 LOC)
  • " *.sh" is biggest, containing 94.53% of LOC.
  • " *.xml" is smallest, containing 2.32% of LOC.


*.sh449 LOC (94%) 30 files
*.yaml15 LOC (3%) 1 file
*.xml11 LOC (2%) 1 file
Other Code
mod
proto
properties
txt
patch
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 ".*/[.]eslintignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[.]prettierignore".
    • files with paths like ".*/[.]npmignore".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*[.]patch".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]npmrc".
  • 461 files match defined criteria (486,303 LOC, 286.8% vs. main code):
    • 181 *.json files (417,538 LOC)
    • 126 *.go files (53,472 LOC)
    • 92 *.md files (11,668 LOC)
    • 10 *.graphqls files (1,440 LOC)
    • 9 *.mod files (784 LOC)
    • 1 *.proto files (466 LOC)
    • 2 *.graphql files (290 LOC)
    • 8 *.yaml files (209 LOC)
    • 5 *.properties files (165 LOC)
    • 6 *.txt files (132 LOC)
    • 12 *.sh files (72 LOC)
    • 8 *.tf files (53 LOC)
    • 1 *.patch files (14 LOC)
  • " *.json" is biggest, containing 85.86% of LOC.
  • " *.patch" is smallest, containing 0% of LOC.


*.json417538 LOC (85%) 181 files
*.go53472 LOC (10%) 126 files
*.md11668 LOC (2%) 92 files
*.graphqls1440 LOC (<1%) 10 files
*.mod784 LOC (<1%) 9 files
*.proto466 LOC (<1%) 1 file
*.graphql290 LOC (<1%) 2 files
*.yaml209 LOC (<1%) 8 files
*.properties165 LOC (<1%) 5 files
*.txt132 LOC (<1%) 6 files
*.sh72 LOC (<1%) 12 files
*.tf53 LOC (<1%) 8 files
*.patch14 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2026-04-18 13:03