uber / kraken
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
txt
mod
tpl
proto
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.

main24667 LOC (50%) 301 files
test22173 LOC (45%) 183 files
generated780 LOC (1%) 5 files
build and deployment17 LOC (<1%) 2 files
other1177 LOC (2%) 24 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
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 301 files match defined criteria (24,667 LOC, 100.0% vs. main code):
    • 280 *.go files (23,838 LOC)
    • 19 *.yaml files (715 LOC)
    • 1 *.proto files (82 LOC)
    • 1 *.tpl files (32 LOC)
  • " *.go" is biggest, containing 96.64% of LOC.
  • " *.tpl" is smallest, containing 0.13% of LOC.


*.go23838 LOC (96%) 280 files
*.yaml715 LOC (2%) 19 files
*.proto82 LOC (<1%) 1 file
*.tpl32 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 ".*_test[.].*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/[Mm]ocks/.*".
    • files with paths like ".*/testing[.].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/test_.*".
  • 183 files match defined criteria (22,173 LOC, 89.9% vs. main code):
    • 173 *.go files (21,041 LOC)
    • 9 *.py files (1,051 LOC)
    • 1 *.sh files (81 LOC)
  • " *.go" is biggest, containing 94.89% of LOC.
  • " *.sh" is smallest, containing 0.37% of LOC.


*.go21041 LOC (94%) 173 files
*.py1051 LOC (4%) 9 files
*.sh81 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 ".*/gen/.*[.]go".
    • files with any line of content like "//[ ]*Generated by .*".
  • 5 files match defined criteria (780 LOC, 3.2% vs. main code). All matches are in *.go files.


*.go780 LOC (100%) 5 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 2 files match defined criteria (17 LOC, 0.1% vs. main code). All matches are in *.sh files.


*.sh17 LOC (100%) 2 files
Other Code
mod
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]json".
  • 24 files match defined criteria (1,177 LOC, 4.8% vs. main code):
    • 8 *.md files (689 LOC)
    • 5 *.yaml files (195 LOC)
    • 1 *.mod files (130 LOC)
    • 7 *.sh files (99 LOC)
    • 1 *.json files (34 LOC)
    • 2 *.txt files (30 LOC)
  • " *.md" is biggest, containing 58.54% of LOC.
  • " *.txt" is smallest, containing 2.55% of LOC.


*.md689 LOC (58%) 8 files
*.yaml195 LOC (16%) 5 files
*.mod130 LOC (11%) 1 file
*.sh99 LOC (8%) 7 files
*.json34 LOC (2%) 1 file
*.txt30 LOC (2%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2026-04-18 12:59