GoogleCloudPlatform / eventarc-samples
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
csproj
txt
properties
gs
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.

main3329 LOC (13%) 85 files
test63 LOC (<1%) 9 files
generated0 LOC (0%) 0 files
build and deployment709 LOC (2%) 45 files
other21367 LOC (83%) 55 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
gs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 85 files match defined criteria (3,329 LOC, 100.0% vs. main code):
    • 31 *.cs files (1,669 LOC)
    • 30 *.yaml files (493 LOC)
    • 8 *.py files (399 LOC)
    • 6 *.tf files (324 LOC)
    • 7 *.js files (209 LOC)
    • 2 *.java files (181 LOC)
    • 1 *.gs files (54 LOC)
  • " *.cs" is biggest, containing 50.14% of LOC.
  • " *.gs" is smallest, containing 1.62% of LOC.


*.cs1669 LOC (50%) 31 files
*.yaml493 LOC (14%) 30 files
*.py399 LOC (11%) 8 files
*.tf324 LOC (9%) 6 files
*.js209 LOC (6%) 7 files
*.java181 LOC (5%) 2 files
*.gs54 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[.].*".
  • 9 files match defined criteria (63 LOC, 1.9% vs. main code). All matches are in *.sh files.


*.sh63 LOC (100%) 9 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
csproj
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".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]csproj".
    • files with paths like ".*[.]gradle".
    • files with paths like ".*[.]bat".
  • 45 files match defined criteria (709 LOC, 21.3% vs. main code):
    • 23 *.sh files (323 LOC)
    • 16 *.csproj files (208 LOC)
    • 2 *.bat files (136 LOC)
    • 4 *.gradle files (42 LOC)
  • " *.sh" is biggest, containing 45.56% of LOC.
  • " *.gradle" is smallest, containing 5.92% of LOC.


*.sh323 LOC (45%) 23 files
*.csproj208 LOC (29%) 16 files
*.bat136 LOC (19%) 2 files
*.gradle42 LOC (5%) 4 files
Other Code
txt
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 ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*[.]properties".
  • 55 files match defined criteria (21,367 LOC, 641.8% vs. main code):
    • 40 *.md files (20,575 LOC)
    • 9 *.json files (768 LOC)
    • 6 *.txt files (24 LOC)
  • " *.md" is biggest, containing 96.29% of LOC.
  • " *.txt" is smallest, containing 0.11% of LOC.


*.md20575 LOC (96%) 40 files
*.json768 LOC (3%) 9 files
*.txt24 LOC (<1%) 6 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 15:37