GoogleCloudPlatform / reliable-app-platforms
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
mod
txt
in
csproj
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.

main3080 LOC (6%) 118 files
test0 LOC (0%) 0 files
generated10812 LOC (22%) 2 files
build and deployment217 LOC (<1%) 6 files
other33929 LOC (70%) 467 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 118 files match defined criteria (3,080 LOC, 100.0% vs. main code):
    • 68 *.tf files (1,620 LOC)
    • 42 *.yaml files (1,278 LOC)
    • 8 *.go files (182 LOC)
  • " *.tf" is biggest, containing 52.6% of LOC.
  • " *.go" is smallest, containing 5.91% of LOC.


*.tf1620 LOC (52%) 68 files
*.yaml1278 LOC (41%) 42 files
*.go182 LOC (5%) 8 files
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".
  • 2 files match defined criteria (10,812 LOC, 351.0% vs. main code). All matches are in *.json files.


*.json10812 LOC (100%) 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[-]lock[.]json".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]gradle".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]csproj".
  • 6 files match defined criteria (217 LOC, 7.0% vs. main code). All matches are in *.sh files.


*.sh217 LOC (100%) 6 files
Other Code
proto
txt
mod
in
csproj
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 ".*[.]json".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*[.]svg".
  • 467 files match defined criteria (33,929 LOC, 1101.6% vs. main code):
    • 8 *.json files (11,030 LOC)
    • 21 *.go files (10,785 LOC)
    • 234 *.yaml files (4,963 LOC)
    • 8 *.py files (1,423 LOC)
    • 108 *.tf files (981 LOC)
    • 6 *.proto files (715 LOC)
    • 3 *.css files (606 LOC)
    • 16 *.md files (598 LOC)
    • 10 *.html files (545 LOC)
    • 8 *.cs files (524 LOC)
    • 14 *.svg files (467 LOC)
    • 5 *.js files (333 LOC)
    • 3 *.txt files (280 LOC)
    • 2 *.java files (255 LOC)
    • 5 *.mod files (176 LOC)
    • 2 *.gradle files (100 LOC)
    • 1 *.bat files (71 LOC)
    • 1 *.xml files (21 LOC)
    • 2 *.in files (20 LOC)
    • 9 *.sh files (20 LOC)
    • 1 *.csproj files (16 LOC)
  • " *.json" is biggest, containing 32.51% of LOC.
  • " *.csproj" is smallest, containing 0.05% of LOC.


*.json11030 LOC (32%) 8 files
*.go10785 LOC (31%) 21 files
*.yaml4963 LOC (14%) 234 files
*.py1423 LOC (4%) 8 files
*.tf981 LOC (2%) 108 files
*.proto715 LOC (2%) 6 files
*.css606 LOC (1%) 3 files
*.md598 LOC (1%) 16 files
*.html545 LOC (1%) 10 files
*.cs524 LOC (1%) 8 files
*.svg467 LOC (1%) 14 files
*.js333 LOC (<1%) 5 files
*.txt280 LOC (<1%) 3 files
*.java255 LOC (<1%) 2 files
*.mod176 LOC (<1%) 5 files
*.gradle100 LOC (<1%) 2 files
*.bat71 LOC (<1%) 1 file
*.xml21 LOC (<1%) 1 file
*.in20 LOC (<1%) 2 files
*.sh20 LOC (<1%) 9 files
*.csproj16 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 15:56