openai / prometheus
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
libsonnet
proto
snap
l
mod
y
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.

main52199 LOC (54%) 254 files
test38207 LOC (39%) 131 files
generated0 LOC (0%) 0 files
build and deployment122 LOC (<1%) 4 files
other5685 LOC (5%) 51 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
y
proto
l
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 254 files match defined criteria (52,199 LOC, 100.0% vs. main code):
    • 167 *.go files (44,621 LOC)
    • 35 *.tsx files (2,480 LOC)
    • 5 *.js files (1,740 LOC)
    • 16 *.html files (981 LOC)
    • 13 *.css files (717 LOC)
    • 10 *.ts files (679 LOC)
    • 1 *.y files (616 LOC)
    • 3 *.proto files (204 LOC)
    • 2 *.l files (151 LOC)
    • 2 *.yaml files (10 LOC)
  • " *.go" is biggest, containing 85.48% of LOC.
  • " *.yaml" is smallest, containing 0.02% of LOC.


*.go44621 LOC (85%) 167 files
*.tsx2480 LOC (4%) 35 files
*.js1740 LOC (3%) 5 files
*.html981 LOC (1%) 16 files
*.css717 LOC (1%) 13 files
*.ts679 LOC (1%) 10 files
*.y616 LOC (1%) 1 file
*.proto204 LOC (<1%) 3 files
*.l151 LOC (<1%) 2 files
*.yaml10 LOC (<1%) 2 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
snap
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 ".*/testing[.].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*[.]snap".
    • files with paths like ".*/test_.*".
  • 131 files match defined criteria (38,207 LOC, 73.2% vs. main code):
    • 102 *.go files (35,115 LOC)
    • 23 *.tsx files (1,701 LOC)
    • 3 *.snap files (926 LOC)
    • 3 *.ts files (465 LOC)
  • " *.go" is biggest, containing 91.91% of LOC.
  • " *.ts" is smallest, containing 1.22% of LOC.


*.go35115 LOC (91%) 102 files
*.tsx1701 LOC (4%) 23 files
*.snap926 LOC (2%) 3 files
*.ts465 LOC (1%) 3 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".
    • files with paths like ".*/package[.]json".
  • 4 files match defined criteria (122 LOC, 0.2% vs. main code). All matches are in *.sh files.


*.sh122 LOC (100%) 4 files
Other Code
txt
libsonnet
mod
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/[Dd]ocumentation/.*".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]libsonnet".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]dockerignore".
  • 51 files match defined criteria (5,685 LOC, 10.9% vs. main code):
    • 20 *.md files (2,060 LOC)
    • 14 *.go files (1,645 LOC)
    • 3 *.txt files (951 LOC)
    • 4 *.libsonnet files (644 LOC)
    • 7 *.json files (319 LOC)
    • 1 *.mod files (60 LOC)
    • 2 *.jsonnet files (6 LOC)
  • " *.md" is biggest, containing 36.24% of LOC.
  • " *.jsonnet" is smallest, containing 0.11% of LOC.


*.md2060 LOC (36%) 20 files
*.go1645 LOC (28%) 14 files
*.txt951 LOC (16%) 3 files
*.libsonnet644 LOC (11%) 4 files
*.json319 LOC (5%) 7 files
*.mod60 LOC (1%) 1 file
*.jsonnet6 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-04-14 11:54