GoogleCloudPlatform / testgrid
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
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.

main29636 LOC (43%) 116 files
test36311 LOC (53%) 56 files
generated0 LOC (0%) 0 files
build and deployment825 LOC (1%) 26 files
other1014 LOC (1%) 28 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 ".*".
  • 116 files match defined criteria (29,636 LOC, 100.0% vs. main code):
    • 72 *.go files (22,269 LOC)
    • 4 *.bzl files (4,245 LOC)
    • 6 *.proto files (1,369 LOC)
    • 20 *.yaml files (993 LOC)
    • 3 *.js files (329 LOC)
    • 2 *.py files (221 LOC)
    • 5 *.tf files (127 LOC)
    • 2 *.html files (43 LOC)
    • 1 *.css files (39 LOC)
    • 1 *.cc files (1 LOC)
  • " *.go" is biggest, containing 75.14% of LOC.
  • " *.cc" is smallest, containing 0% of LOC.


*.go22269 LOC (75%) 72 files
*.bzl4245 LOC (14%) 4 files
*.proto1369 LOC (4%) 6 files
*.yaml993 LOC (3%) 20 files
*.js329 LOC (1%) 3 files
*.py221 LOC (<1%) 2 files
*.tf127 LOC (<1%) 5 files
*.html43 LOC (<1%) 2 files
*.css39 LOC (<1%) 1 file
*.cc1 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
proto
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/test_.*".
    • files with paths like ".*_test[.].*".
  • 56 files match defined criteria (36,311 LOC, 122.5% vs. main code):
    • 54 *.go files (36,224 LOC)
    • 1 *.py files (63 LOC)
    • 1 *.proto files (24 LOC)
  • " *.go" is biggest, containing 99.76% of LOC.
  • " *.proto" is smallest, containing 0.07% of LOC.


*.go36224 LOC (99%) 54 files
*.py63 LOC (<1%) 1 file
*.proto24 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".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 26 files match defined criteria (825 LOC, 2.8% vs. main code). All matches are in *.sh files.


*.sh825 LOC (100%) 26 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 ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/go[.]mod".
  • 28 files match defined criteria (1,014 LOC, 3.4% vs. main code):
    • 19 *.md files (874 LOC)
    • 7 *.txt files (89 LOC)
    • 1 *.mod files (33 LOC)
    • 1 *.json files (18 LOC)
  • " *.md" is biggest, containing 86.19% of LOC.
  • " *.json" is smallest, containing 1.78% of LOC.


*.md874 LOC (86%) 19 files
*.txt89 LOC (8%) 7 files
*.mod33 LOC (3%) 1 file
*.json18 LOC (1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 15:14