uber / piranha
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
scm
pyi
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.

main13527 LOC (38%) 84 files
test18650 LOC (52%) 392 files
generated720 LOC (2%) 3 files
build and deployment0 LOC (0%) 0 files
other2519 LOC (7%) 49 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
pyi
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 84 files match defined criteria (13,527 LOC, 100.0% vs. main code):
    • 25 *.toml files (5,886 LOC)
    • 40 *.rs files (5,698 LOC)
    • 15 *.py files (1,130 LOC)
    • 1 *.js files (592 LOC)
    • 1 *.pyi files (156 LOC)
    • 1 *.css files (59 LOC)
    • 1 *.go files (6 LOC)
  • " *.toml" is biggest, containing 43.51% of LOC.
  • " *.go" is smallest, containing 0.04% of LOC.


*.toml5886 LOC (43%) 25 files
*.rs5698 LOC (42%) 40 files
*.py1130 LOC (8%) 15 files
*.js592 LOC (4%) 1 file
*.pyi156 LOC (1%) 1 file
*.css59 LOC (<1%) 1 file
*.go6 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 ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/test[-]resources/.*".
  • 392 files match defined criteria (18,650 LOC, 137.9% vs. main code):
    • 101 *.toml files (4,789 LOC)
    • 25 *.rs files (4,633 LOC)
    • 96 *.java files (3,017 LOC)
    • 40 *.swift files (2,167 LOC)
    • 30 *.kt files (1,609 LOC)
    • 29 *.go files (910 LOC)
    • 32 *.rb files (618 LOC)
    • 7 *.py files (545 LOC)
    • 22 *.scala files (251 LOC)
    • 3 *.ts files (51 LOC)
    • 3 *.tsx files (42 LOC)
    • 2 *.yaml files (10 LOC)
    • 2 *.thrift files (8 LOC)
  • " *.toml" is biggest, containing 25.68% of LOC.
  • " *.thrift" is smallest, containing 0.04% of LOC.


*.toml4789 LOC (25%) 101 files
*.rs4633 LOC (24%) 25 files
*.java3017 LOC (16%) 96 files
*.swift2167 LOC (11%) 40 files
*.kt1609 LOC (8%) 30 files
*.go910 LOC (4%) 29 files
*.rb618 LOC (3%) 32 files
*.py545 LOC (2%) 7 files
*.scala251 LOC (1%) 22 files
*.ts51 LOC (<1%) 3 files
*.tsx42 LOC (<1%) 3 files
*.yaml10 LOC (<1%) 2 files
*.thrift8 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 any line of content like "\<\!\-\-[ ]*Generated by .*".
  • 3 files match defined criteria (720 LOC, 5.3% vs. main code). All matches are in *.svg files.


*.svg720 LOC (100%) 3 files
Other Code
txt
scm
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 ".*[.]scm".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
  • 49 files match defined criteria (2,519 LOC, 18.6% vs. main code):
    • 3 *.svg files (720 LOC)
    • 9 *.md files (647 LOC)
    • 12 *.toml files (557 LOC)
    • 7 *.py files (328 LOC)
    • 7 *.java files (76 LOC)
    • 1 *.thrift files (75 LOC)
    • 1 *.go files (31 LOC)
    • 2 *.kt files (21 LOC)
    • 1 *.swift files (21 LOC)
    • 1 *.ts files (17 LOC)
    • 1 *.tsx files (14 LOC)
    • 2 *.txt files (10 LOC)
    • 2 *.scm files (2 LOC)
  • " *.svg" is biggest, containing 28.58% of LOC.
  • " *.scm" is smallest, containing 0.08% of LOC.


*.svg720 LOC (28%) 3 files
*.md647 LOC (25%) 9 files
*.toml557 LOC (22%) 12 files
*.py328 LOC (13%) 7 files
*.java76 LOC (3%) 7 files
*.thrift75 LOC (2%) 1 file
*.go31 LOC (1%) 1 file
*.kt21 LOC (<1%) 2 files
*.swift21 LOC (<1%) 1 file
*.ts17 LOC (<1%) 1 file
*.tsx14 LOC (<1%) 1 file
*.txt10 LOC (<1%) 2 files
*.scm2 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2026-04-18 13:00