GoogleCloudPlatform / pubsub2inbox
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
tpl
mod
in
patch
pub
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.

main7713 LOC (47%) 69 files
test1788 LOC (10%) 39 files
generated0 LOC (0%) 0 files
build and deployment0 LOC (0%) 0 files
other6820 LOC (41%) 103 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
in
pub
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 69 files match defined criteria (7,713 LOC, 100.0% vs. main code):
    • 60 *.py files (6,184 LOC)
    • 3 *.tf files (911 LOC)
    • 3 *.go files (544 LOC)
    • 1 *.in files (43 LOC)
    • 1 *.toml files (27 LOC)
    • 1 *.pub files (4 LOC)
  • " *.py" is biggest, containing 80.18% of LOC.
  • " *.pub" is smallest, containing 0.05% of LOC.


*.py6184 LOC (80%) 60 files
*.tf911 LOC (11%) 3 files
*.go544 LOC (7%) 3 files
*.in43 LOC (<1%) 1 file
*.toml27 LOC (<1%) 1 file
*.pub4 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 ".*_test[.].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/test_.*".
  • 39 files match defined criteria (1,788 LOC, 23.2% vs. main code):
    • 20 *.yaml files (797 LOC)
    • 12 *.py files (453 LOC)
    • 1 *.go files (357 LOC)
    • 6 *.tf files (181 LOC)
  • " *.yaml" is biggest, containing 44.57% of LOC.
  • " *.tf" is smallest, containing 10.12% of LOC.


*.yaml797 LOC (44%) 20 files
*.py453 LOC (25%) 12 files
*.go357 LOC (19%) 1 file
*.tf181 LOC (10%) 6 files
Other Code
txt
tpl
patch
mod
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*[.]patch".
    • files with paths like ".*/go[.]mod".
  • 103 files match defined criteria (6,820 LOC, 88.4% vs. main code):
    • 44 *.yaml files (2,959 LOC)
    • 22 *.tf files (1,189 LOC)
    • 2 *.txt files (1,155 LOC)
    • 11 *.md files (780 LOC)
    • 3 *.tpl files (233 LOC)
    • 18 *.json files (230 LOC)
    • 1 *.patch files (203 LOC)
    • 1 *.mod files (52 LOC)
    • 1 *.sh files (19 LOC)
  • " *.yaml" is biggest, containing 43.39% of LOC.
  • " *.sh" is smallest, containing 0.28% of LOC.


*.yaml2959 LOC (43%) 44 files
*.tf1189 LOC (17%) 22 files
*.txt1155 LOC (16%) 2 files
*.md780 LOC (11%) 11 files
*.tpl233 LOC (3%) 3 files
*.json230 LOC (3%) 18 files
*.patch203 LOC (2%) 1 file
*.mod52 LOC (<1%) 1 file
*.sh19 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 15:51