GoogleCloudPlatform / retail-data-model
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
proto
txt
mod
npmrc
in
properties
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.

main7872 LOC (43%) 36 files
test0 LOC (0%) 0 files
generated889 LOC (4%) 1 file
build and deployment3873 LOC (21%) 3 files
other5368 LOC (29%) 128 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 36 files match defined criteria (7,872 LOC, 100.0% vs. main code):
    • 29 *.proto files (6,030 LOC)
    • 5 *.bzl files (1,800 LOC)
    • 1 *.py files (36 LOC)
    • 1 *.in files (6 LOC)
  • " *.proto" is biggest, containing 76.6% of LOC.
  • " *.in" is smallest, containing 0.08% of LOC.


*.proto6030 LOC (76%) 29 files
*.bzl1800 LOC (22%) 5 files
*.py36 LOC (<1%) 1 file
*.in6 LOC (<1%) 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".
  • 1 file matches defined criteria (889 LOC, 11.3% vs. main code). All matches are in *.json files.


*.json889 LOC (100%) 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 ".*[.]sh".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/pnpm.*[.]ya?ml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 3 files match defined criteria (3,873 LOC, 49.2% vs. main code):
    • 2 *.yaml files (3,871 LOC)
    • 1 *.sh files (2 LOC)
  • " *.yaml" is biggest, containing 99.95% of LOC.
  • " *.sh" is smallest, containing 0.05% of LOC.


*.yaml3871 LOC (99%) 2 files
*.sh2 LOC (<1%) 1 file
Other Code
txt
mod
properties
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 ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]json".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]npmrc".
    • files with paths like ".*/[.]gitignore".
  • 128 files match defined criteria (5,368 LOC, 68.2% vs. main code):
    • 59 *.go files (2,872 LOC)
    • 29 *.json files (1,568 LOC)
    • 17 *.md files (408 LOC)
    • 11 *.java files (296 LOC)
    • 2 *.txt files (79 LOC)
    • 7 *.py files (75 LOC)
    • 2 *.mod files (69 LOC)
    • 1 *.properties files (1 LOC)
  • " *.go" is biggest, containing 53.5% of LOC.
  • " *.properties" is smallest, containing 0.02% of LOC.


*.go2872 LOC (53%) 59 files
*.json1568 LOC (29%) 29 files
*.md408 LOC (7%) 17 files
*.java296 LOC (5%) 11 files
*.txt79 LOC (1%) 2 files
*.py75 LOC (1%) 7 files
*.mod69 LOC (1%) 2 files
*.properties1 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 15:53