GoogleCloudPlatform / buildpacks
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
cfg
txt
mod
properties
csproj
ru
cmd
ini
fsproj
gyp
fs
ejs
vbproj
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.

main21086 LOC (38%) 251 files
test26950 LOC (49%) 362 files
generated2204 LOC (4%) 2 files
build and deployment221 LOC (<1%) 11 files
other3763 LOC (6%) 43 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 251 files match defined criteria (21,086 LOC, 100.0% vs. main code):
    • 171 *.go files (16,686 LOC)
    • 4 *.toml files (1,590 LOC)
    • 16 *.bzl files (1,102 LOC)
    • 17 *.yaml files (922 LOC)
    • 1 *.js files (543 LOC)
    • 40 *.cfg files (204 LOC)
    • 1 *.rb files (21 LOC)
    • 1 *.cmake files (18 LOC)
  • " *.go" is biggest, containing 79.13% of LOC.
  • " *.cmake" is smallest, containing 0.09% of LOC.


*.go16686 LOC (79%) 171 files
*.toml1590 LOC (7%) 4 files
*.bzl1102 LOC (5%) 16 files
*.yaml922 LOC (4%) 17 files
*.js543 LOC (2%) 1 file
*.cfg204 LOC (<1%) 40 files
*.rb21 LOC (<1%) 1 file
*.cmake18 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
  • 362 files match defined criteria (26,950 LOC, 127.8% vs. main code):
    • 193 *.go files (25,078 LOC)
    • 12 *.yaml files (1,087 LOC)
    • 157 *.cfg files (785 LOC)
  • " *.go" is biggest, containing 93.05% of LOC.
  • " *.cfg" is smallest, containing 2.91% of LOC.


*.go25078 LOC (93%) 193 files
*.yaml1087 LOC (4%) 12 files
*.cfg785 LOC (2%) 157 files
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/npm[-]shrinkwrap[.]json".
  • 2 files match defined criteria (2,204 LOC, 10.5% vs. main code). All matches are in *.json files.


*.json2204 LOC (100%) 2 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 ".*/pom[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]gradle".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/pnpm.*[.]json".
    • files with paths like ".*/pnpm.*[.]ya?ml".
    • files with paths like ".*[.]csproj".
    • files with paths like ".*[.]vbproj".
  • 11 files match defined criteria (221 LOC, 1.0% vs. main code):
    • 10 *.sh files (214 LOC)
    • 1 *.gradle files (7 LOC)
  • " *.sh" is biggest, containing 96.83% of LOC.
  • " *.gradle" is smallest, containing 3.17% of LOC.


*.sh214 LOC (96%) 10 files
*.gradle7 LOC (3%) 1 file
Other Code
txt
mod
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 ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]ini".
    • files with paths like ".*/go[.]mod".
  • 43 files match defined criteria (3,763 LOC, 17.8% vs. main code):
    • 7 *.json files (2,246 LOC)
    • 20 *.md files (786 LOC)
    • 14 *.txt files (673 LOC)
    • 2 *.mod files (58 LOC)
  • " *.json" is biggest, containing 59.69% of LOC.
  • " *.mod" is smallest, containing 1.54% of LOC.


*.json2246 LOC (59%) 7 files
*.md786 LOC (20%) 20 files
*.txt673 LOC (17%) 14 files
*.mod58 LOC (1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 15:22