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
in
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.

main12764 LOC (38%) 86 files
test17014 LOC (51%) 366 files
generated720 LOC (2%) 3 files
build and deployment0 LOC (0%) 0 files
other2735 LOC (8%) 54 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
pyi
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 86 files match defined criteria (12,764 LOC, 100.0% vs. main code):
    • 23 *.toml files (5,824 LOC)
    • 26 *.rs files (3,931 LOC)
    • 31 *.py files (2,420 LOC)
    • 1 *.js files (193 LOC)
    • 1 *.html files (156 LOC)
    • 1 *.pyi files (153 LOC)
    • 1 *.css files (79 LOC)
    • 1 *.go files (6 LOC)
    • 1 *.in files (2 LOC)
  • " *.toml" is biggest, containing 45.63% of LOC.
  • " *.in" is smallest, containing 0.02% of LOC.


*.toml5824 LOC (45%) 23 files
*.rs3931 LOC (30%) 26 files
*.py2420 LOC (18%) 31 files
*.js193 LOC (1%) 1 file
*.html156 LOC (1%) 1 file
*.pyi153 LOC (1%) 1 file
*.css79 LOC (<1%) 1 file
*.go6 LOC (<1%) 1 file
*.in2 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/.*".
  • 366 files match defined criteria (17,014 LOC, 133.3% vs. main code):
    • 95 *.toml files (4,662 LOC)
    • 22 *.rs files (3,087 LOC)
    • 91 *.java files (2,984 LOC)
    • 40 *.swift files (2,167 LOC)
    • 30 *.kt files (1,609 LOC)
    • 15 *.py files (892 LOC)
    • 9 *.go files (633 LOC)
    • 32 *.rb files (618 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 27.4% of LOC.
  • " *.thrift" is smallest, containing 0.05% of LOC.


*.toml4662 LOC (27%) 95 files
*.rs3087 LOC (18%) 22 files
*.java2984 LOC (17%) 91 files
*.swift2167 LOC (12%) 40 files
*.kt1609 LOC (9%) 30 files
*.py892 LOC (5%) 15 files
*.go633 LOC (3%) 9 files
*.rb618 LOC (3%) 32 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.6% 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 ".*/[Dd]emos?/.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]scm".
    • files with paths like ".*[.]svg".
  • 54 files match defined criteria (2,735 LOC, 21.4% vs. main code):
    • 11 *.md files (830 LOC)
    • 3 *.svg files (720 LOC)
    • 12 *.toml files (569 LOC)
    • 7 *.py files (328 LOC)
    • 9 *.java files (86 LOC)
    • 1 *.thrift files (75 LOC)
    • 1 *.go files (31 LOC)
    • 2 *.kt files (21 LOC)
    • 3 *.txt files (21 LOC)
    • 1 *.swift files (21 LOC)
    • 1 *.ts files (17 LOC)
    • 1 *.tsx files (14 LOC)
    • 2 *.scm files (2 LOC)
  • " *.md" is biggest, containing 30.35% of LOC.
  • " *.scm" is smallest, containing 0.07% of LOC.


*.md830 LOC (30%) 11 files
*.svg720 LOC (26%) 3 files
*.toml569 LOC (20%) 12 files
*.py328 LOC (11%) 7 files
*.java86 LOC (3%) 9 files
*.thrift75 LOC (2%) 1 file
*.go31 LOC (1%) 1 file
*.kt21 LOC (<1%) 2 files
*.txt21 LOC (<1%) 3 files
*.swift21 LOC (<1%) 1 file
*.ts17 LOC (<1%) 1 file
*.tsx14 LOC (<1%) 1 file
*.scm2 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-03 07:37