GoogleCloudPlatform / elcarro-oracle-operator
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
patch
txt
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.

main44653 LOC (69%) 205 files
test15515 LOC (24%) 58 files
generated0 LOC (0%) 0 files
build and deployment2116 LOC (3%) 36 files
other2206 LOC (3%) 55 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 ".*".
  • 205 files match defined criteria (44,653 LOC, 100.0% vs. main code):
    • 112 *.go files (30,553 LOC)
    • 86 *.yaml files (10,306 LOC)
    • 2 *.bzl files (3,114 LOC)
    • 4 *.proto files (632 LOC)
    • 1 *.jsonnet files (48 LOC)
  • " *.go" is biggest, containing 68.42% of LOC.
  • " *.jsonnet" is smallest, containing 0.11% of LOC.


*.go30553 LOC (68%) 112 files
*.yaml10306 LOC (23%) 86 files
*.bzl3114 LOC (6%) 2 files
*.proto632 LOC (1%) 4 files
*.jsonnet48 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[.].*".
    • files with paths like ".*/test_.*".
  • 58 files match defined criteria (15,515 LOC, 34.7% vs. main code):
    • 57 *.go files (15,494 LOC)
    • 1 *.bzl files (21 LOC)
  • " *.go" is biggest, containing 99.86% of LOC.
  • " *.bzl" is smallest, containing 0.14% of LOC.


*.go15494 LOC (99%) 57 files
*.bzl21 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".
  • 36 files match defined criteria (2,116 LOC, 4.7% vs. main code). All matches are in *.sh files.


*.sh2116 LOC (100%) 36 files
Other Code
patch
mod
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]patch".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*/go[.]mod".
  • 55 files match defined criteria (2,206 LOC, 4.9% vs. main code):
    • 2 *.patch files (809 LOC)
    • 43 *.yaml files (800 LOC)
    • 4 *.md files (226 LOC)
    • 4 *.json files (224 LOC)
    • 1 *.mod files (135 LOC)
    • 1 *.txt files (12 LOC)
  • " *.patch" is biggest, containing 36.67% of LOC.
  • " *.txt" is smallest, containing 0.54% of LOC.


*.patch809 LOC (36%) 2 files
*.yaml800 LOC (36%) 43 files
*.md226 LOC (10%) 4 files
*.json224 LOC (10%) 4 files
*.mod135 LOC (6%) 1 file
*.txt12 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 15:38