GoogleCloudPlatform / selkies
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
mod
txt
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.

main8432 LOC (74%) 111 files
test10 LOC (<1%) 1 file
generated657 LOC (5%) 2 files
build and deployment1138 LOC (10%) 29 files
other1056 LOC (9%) 16 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 ".*".
  • 111 files match defined criteria (8,432 LOC, 100.0% vs. main code):
    • 15 *.go files (3,081 LOC)
    • 54 *.yaml files (2,745 LOC)
    • 36 *.tf files (1,969 LOC)
    • 3 *.js files (388 LOC)
    • 1 *.html files (124 LOC)
    • 1 *.bash files (113 LOC)
    • 1 *.tfvars files (12 LOC)
  • " *.go" is biggest, containing 36.54% of LOC.
  • " *.tfvars" is smallest, containing 0.14% of LOC.


*.go3081 LOC (36%) 15 files
*.yaml2745 LOC (32%) 54 files
*.tf1969 LOC (23%) 36 files
*.js388 LOC (4%) 3 files
*.html124 LOC (1%) 1 file
*.bash113 LOC (1%) 1 file
*.tfvars12 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[.].*".
  • 1 file matches defined criteria (10 LOC, 0.1% vs. main code). All matches are in *.sh files.


*.sh10 LOC (100%) 1 file
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".
  • 2 files match defined criteria (657 LOC, 7.8% vs. main code). All matches are in *.json files.


*.json657 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
  • 29 files match defined criteria (1,138 LOC, 13.5% vs. main code). All matches are in *.sh files.


*.sh1138 LOC (100%) 29 files
Other Code
mod
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • 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 ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*/[.]dockerignore".
  • 16 files match defined criteria (1,056 LOC, 12.5% vs. main code):
    • 3 *.json files (674 LOC)
    • 6 *.md files (190 LOC)
    • 5 *.yaml files (111 LOC)
    • 1 *.sh files (63 LOC)
    • 1 *.mod files (18 LOC)
  • " *.json" is biggest, containing 63.83% of LOC.
  • " *.mod" is smallest, containing 1.7% of LOC.


*.json674 LOC (63%) 3 files
*.md190 LOC (17%) 6 files
*.yaml111 LOC (10%) 5 files
*.sh63 LOC (5%) 1 file
*.mod18 LOC (1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 15:21