GoogleCloudPlatform / pgadapter
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
cfg
mod
properties
csproj
prisma
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.

main28408 LOC (22%) 219 files
test73620 LOC (58%) 278 files
generated0 LOC (0%) 0 files
build and deployment1561 LOC (1%) 18 files
other21988 LOC (17%) 449 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 ".*".
  • 219 files match defined criteria (28,408 LOC, 100.0% vs. main code):
    • 201 *.java files (26,037 LOC)
    • 6 *.go files (1,105 LOC)
    • 5 *.sql files (436 LOC)
    • 3 *.ts files (311 LOC)
    • 1 *.js files (306 LOC)
    • 3 *.xml files (213 LOC)
  • " *.java" is biggest, containing 91.65% of LOC.
  • " *.xml" is smallest, containing 0.75% of LOC.


*.java26037 LOC (91%) 201 files
*.go1105 LOC (3%) 6 files
*.sql436 LOC (1%) 5 files
*.ts311 LOC (1%) 3 files
*.js306 LOC (1%) 1 file
*.xml213 LOC (<1%) 3 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
prisma
csproj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*[-]tests[-].*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/jest[.][a-zA-Z0-9\.]+".
  • 278 files match defined criteria (73,620 LOC, 259.2% vs. main code):
    • 181 *.java files (65,410 LOC)
    • 4 *.go files (2,936 LOC)
    • 71 *.py files (2,001 LOC)
    • 7 *.ts files (1,496 LOC)
    • 1 *.cs files (1,206 LOC)
    • 1 *.php files (255 LOC)
    • 9 *.rb files (216 LOC)
    • 1 *.prisma files (47 LOC)
    • 2 *.sql files (41 LOC)
    • 1 *.csproj files (12 LOC)
  • " *.java" is biggest, containing 88.85% of LOC.
  • " *.csproj" is smallest, containing 0.02% of LOC.


*.java65410 LOC (88%) 181 files
*.go2936 LOC (3%) 4 files
*.py2001 LOC (2%) 71 files
*.ts1496 LOC (2%) 7 files
*.cs1206 LOC (1%) 1 file
*.php255 LOC (<1%) 1 file
*.rb216 LOC (<1%) 9 files
*.prisma47 LOC (<1%) 1 file
*.sql41 LOC (<1%) 2 files
*.csproj12 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 ".*/pom[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]csproj".
    • files with paths like ".*[.]bat".
  • 18 files match defined criteria (1,561 LOC, 5.5% vs. main code):
    • 3 *.xml files (795 LOC)
    • 15 *.sh files (766 LOC)
  • " *.xml" is biggest, containing 50.93% of LOC.
  • " *.sh" is smallest, containing 49.07% of LOC.


*.xml795 LOC (50%) 3 files
*.sh766 LOC (49%) 15 files
Other Code
txt
mod
properties
prisma
csproj
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 ".*[.]properties".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Ss]amples/.*".
  • 449 files match defined criteria (21,988 LOC, 77.4% vs. main code):
    • 45 *.md files (4,772 LOC)
    • 69 *.java files (3,912 LOC)
    • 30 *.ts files (2,552 LOC)
    • 75 *.py files (2,397 LOC)
    • 27 *.go files (1,818 LOC)
    • 11 *.xml files (1,188 LOC)
    • 21 *.cs files (837 LOC)
    • 34 *.txt files (694 LOC)
    • 20 *.php files (650 LOC)
    • 28 *.json files (588 LOC)
    • 22 *.sql files (575 LOC)
    • 10 *.mod files (525 LOC)
    • 9 *.yaml files (415 LOC)
    • 19 *.sh files (377 LOC)
    • 11 *.rb files (351 LOC)
    • 10 *.properties files (155 LOC)
    • 1 *.prisma files (76 LOC)
    • 4 *.csproj files (74 LOC)
    • 2 *.js files (29 LOC)
    • 1 *.toml files (3 LOC)
  • " *.md" is biggest, containing 21.7% of LOC.
  • " *.toml" is smallest, containing 0.01% of LOC.


*.md4772 LOC (21%) 45 files
*.java3912 LOC (17%) 69 files
*.ts2552 LOC (11%) 30 files
*.py2397 LOC (10%) 75 files
*.go1818 LOC (8%) 27 files
*.xml1188 LOC (5%) 11 files
*.cs837 LOC (3%) 21 files
*.txt694 LOC (3%) 34 files
*.php650 LOC (2%) 20 files
*.json588 LOC (2%) 28 files
*.sql575 LOC (2%) 22 files
*.mod525 LOC (2%) 10 files
*.yaml415 LOC (1%) 9 files
*.sh377 LOC (1%) 19 files
*.rb351 LOC (1%) 11 files
*.properties155 LOC (<1%) 10 files
*.prisma76 LOC (<1%) 1 file
*.csproj74 LOC (<1%) 4 files
*.js29 LOC (<1%) 2 files
*.toml3 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 15:41