GoogleCloudPlatform / cloud-image-tests
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
s
mod
proto
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.

main3847 LOC (19%) 9 files
test14767 LOC (75%) 125 files
generated0 LOC (0%) 0 files
build and deployment39 LOC (<1%) 2 files
other876 LOC (4%) 9 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 9 files match defined criteria (3,847 LOC, 100.0% vs. main code):
    • 8 *.go files (3,831 LOC)
    • 1 *.proto files (16 LOC)
  • " *.go" is biggest, containing 99.58% of LOC.
  • " *.proto" is smallest, containing 0.42% of LOC.


*.go3831 LOC (99%) 8 files
*.proto16 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
s
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/test_.*".
    • files with paths like ".*_test[.].*".
  • 125 files match defined criteria (14,767 LOC, 383.9% vs. main code):
    • 103 *.go files (14,412 LOC)
    • 10 *.ps1 files (209 LOC)
    • 9 *.sh files (112 LOC)
    • 3 *.s files (34 LOC)
  • " *.go" is biggest, containing 97.6% of LOC.
  • " *.s" is smallest, containing 0.23% of LOC.


*.go14412 LOC (97%) 103 files
*.ps1209 LOC (1%) 10 files
*.sh112 LOC (<1%) 9 files
*.s34 LOC (<1%) 3 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".
  • 2 files match defined criteria (39 LOC, 1.0% vs. main code). All matches are in *.sh files.


*.sh39 LOC (100%) 2 files
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 ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/go[.]mod".
  • 9 files match defined criteria (876 LOC, 22.8% vs. main code):
    • 6 *.md files (695 LOC)
    • 2 *.txt files (126 LOC)
    • 1 *.mod files (55 LOC)
  • " *.md" is biggest, containing 79.34% of LOC.
  • " *.mod" is smallest, containing 6.28% of LOC.


*.md695 LOC (79%) 6 files
*.txt126 LOC (14%) 2 files
*.mod55 LOC (6%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 16:04