GoogleCloudPlatform / memorystore-cluster-autoscaler
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
hcl
mod
txt
mjs
proto
eslintignore
npmrc
prettierignore
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.

main5848 LOC (43%) 79 files
test3995 LOC (29%) 27 files
generated0 LOC (0%) 0 files
build and deployment32 LOC (<1%) 1 file
other3721 LOC (27%) 39 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
mjs
proto
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 79 files match defined criteria (5,848 LOC, 100.0% vs. main code):
    • 31 *.js files (2,954 LOC)
    • 40 *.tf files (2,429 LOC)
    • 1 *.mjs files (166 LOC)
    • 4 *.yaml files (156 LOC)
    • 1 *.json5 files (79 LOC)
    • 1 *.proto files (34 LOC)
    • 1 *.html files (30 LOC)
  • " *.js" is biggest, containing 50.51% of LOC.
  • " *.html" is smallest, containing 0.51% of LOC.


*.js2954 LOC (50%) 31 files
*.tf2429 LOC (41%) 40 files
*.mjs166 LOC (2%) 1 file
*.yaml156 LOC (2%) 4 files
*.json579 LOC (1%) 1 file
*.proto34 LOC (<1%) 1 file
*.html30 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 ".*/[Tt]est/.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*_tests[.].*".
  • 27 files match defined criteria (3,995 LOC, 68.3% vs. main code):
    • 11 *.js files (3,331 LOC)
    • 2 *.go files (302 LOC)
    • 9 *.yaml files (151 LOC)
    • 3 *.tf files (132 LOC)
    • 2 *.sh files (79 LOC)
  • " *.js" is biggest, containing 83.38% of LOC.
  • " *.sh" is smallest, containing 1.98% of LOC.


*.js3331 LOC (83%) 11 files
*.go302 LOC (7%) 2 files
*.yaml151 LOC (3%) 9 files
*.tf132 LOC (3%) 3 files
*.sh79 LOC (1%) 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 ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 1 file matches defined criteria (32 LOC, 0.5% vs. main code). All matches are in *.sh files.


*.sh32 LOC (100%) 1 file
Other Code
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 ".*/[.]prettierignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]npmrc".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]eslintignore".
  • 39 files match defined criteria (3,721 LOC, 63.6% vs. main code):
    • 23 *.md files (2,735 LOC)
    • 14 *.json files (769 LOC)
    • 2 *.mod files (217 LOC)
  • " *.md" is biggest, containing 73.5% of LOC.
  • " *.mod" is smallest, containing 5.83% of LOC.


*.md2735 LOC (73%) 23 files
*.json769 LOC (20%) 14 files
*.mod217 LOC (5%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 16:06