GoogleCloudPlatform / workloadagent
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
proto
mod
spec
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.

main12552 LOC (49%) 62 files
test11456 LOC (45%) 29 files
generated0 LOC (0%) 0 files
build and deployment109 LOC (<1%) 5 files
other1006 LOC (4%) 8 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
spec
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 62 files match defined criteria (12,552 LOC, 100.0% vs. main code):
    • 53 *.go files (11,572 LOC)
    • 4 *.proto files (507 LOC)
    • 4 *.ps1 files (349 LOC)
    • 1 *.spec files (124 LOC)
  • " *.go" is biggest, containing 92.19% of LOC.
  • " *.spec" is smallest, containing 0.99% of LOC.


*.go11572 LOC (92%) 53 files
*.proto507 LOC (4%) 4 files
*.ps1349 LOC (2%) 4 files
*.spec124 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[.].*".
    • files with paths like ".*/test_.*".
  • 29 files match defined criteria (11,456 LOC, 91.3% vs. main code):
    • 28 *.go files (11,445 LOC)
    • 1 *.yaml files (11 LOC)
  • " *.go" is biggest, containing 99.9% of LOC.
  • " *.yaml" is smallest, containing 0.1% of LOC.


*.go11445 LOC (99%) 28 files
*.yaml11 LOC (<1%) 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".
  • 5 files match defined criteria (109 LOC, 0.9% vs. main code). All matches are in *.sh files.


*.sh109 LOC (100%) 5 files
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 ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/go[.]mod".
  • 8 files match defined criteria (1,006 LOC, 8.0% vs. main code):
    • 5 *.json files (888 LOC)
    • 1 *.mod files (86 LOC)
    • 2 *.md files (32 LOC)
  • " *.json" is biggest, containing 88.27% of LOC.
  • " *.md" is smallest, containing 3.18% of LOC.


*.json888 LOC (88%) 5 files
*.mod86 LOC (8%) 1 file
*.md32 LOC (3%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 16:07