uber / gqlgen
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
gitattributes
editorconfig
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.

main99858 LOC (63%) 420 files
test17002 LOC (10%) 152 files
generated39492 LOC (25%) 49 files
build and deployment17 LOC (<1%) 1 file
other703 LOC (<1%) 28 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 420 files match defined criteria (99,858 LOC, 100.0% vs. main code):
    • 307 *.go files (97,463 LOC)
    • 92 *.graphql files (1,726 LOC)
    • 7 *.js files (390 LOC)
    • 10 *.graphqls files (184 LOC)
    • 2 *.ts files (45 LOC)
    • 1 *.yaml files (35 LOC)
    • 1 *.html files (15 LOC)
  • " *.go" is biggest, containing 97.6% of LOC.
  • " *.html" is smallest, containing 0.02% of LOC.


*.go97463 LOC (97%) 307 files
*.graphql1726 LOC (1%) 92 files
*.js390 LOC (<1%) 7 files
*.graphqls184 LOC (<1%) 10 files
*.ts45 LOC (<1%) 2 files
*.yaml35 LOC (<1%) 1 file
*.html15 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 ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*/test_.*".
    • files with paths like ".*_mock[.][a-zA-Z0-9_\-]+".
    • files with paths like ".*__test__.*".
    • files with paths like ".*[.]spec[.]ts".
  • 152 files match defined criteria (17,002 LOC, 17.0% vs. main code):
    • 150 *.go files (16,626 LOC)
    • 1 *.ts files (368 LOC)
    • 1 *.js files (8 LOC)
  • " *.go" is biggest, containing 97.79% of LOC.
  • " *.js" is smallest, containing 0.05% of LOC.


*.go16626 LOC (97%) 150 files
*.ts368 LOC (2%) 1 file
*.js8 LOC (<1%) 1 file
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[.][a-zA-Z]+".
    • files with paths like ".*/generated/.*".
  • 49 files match defined criteria (39,492 LOC, 39.5% vs. main code):
    • 44 *.go files (38,991 LOC)
    • 1 *.proto files (366 LOC)
    • 3 *.ts files (79 LOC)
    • 1 *.graphql files (56 LOC)
  • " *.go" is biggest, containing 98.73% of LOC.
  • " *.graphql" is smallest, containing 0.14% of LOC.


*.go38991 LOC (98%) 44 files
*.proto366 LOC (<1%) 1 file
*.ts79 LOC (<1%) 3 files
*.graphql56 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 ".*/[.]gitattributes".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/[.]gitignore".
  • 1 file matches defined criteria (17 LOC, 0.0% vs. main code). All matches are in *.sh files.


*.sh17 LOC (100%) 1 file
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 ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*[.]editorconfig".
  • 28 files match defined criteria (703 LOC, 0.7% vs. main code):
    • 17 *.md files (487 LOC)
    • 5 *.json files (129 LOC)
    • 3 *.mod files (84 LOC)
    • 3 *.txt files (3 LOC)
  • " *.md" is biggest, containing 69.27% of LOC.
  • " *.txt" is smallest, containing 0.43% of LOC.


*.md487 LOC (69%) 17 files
*.json129 LOC (18%) 5 files
*.mod84 LOC (11%) 3 files
*.txt3 LOC (<1%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2026-04-18 13:02