GoogleCloudPlatform / gcs-fuse-csi-driver
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
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.

main5274 LOC (25%) 61 files
test11583 LOC (56%) 52 files
generated0 LOC (0%) 0 files
build and deployment501 LOC (2%) 12 files
other3019 LOC (14%) 61 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 ".*".
  • 61 files match defined criteria (5,274 LOC, 100.0% vs. main code):
    • 36 *.go files (4,330 LOC)
    • 24 *.yaml files (798 LOC)
    • 1 *.py files (146 LOC)
  • " *.go" is biggest, containing 82.1% of LOC.
  • " *.py" is smallest, containing 2.77% of LOC.


*.go4330 LOC (82%) 36 files
*.yaml798 LOC (15%) 24 files
*.py146 LOC (2%) 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 ".*_tests[.].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/e2e/.*".
    • files with paths like ".*/[Ss]pecs/.*".
  • 52 files match defined criteria (11,583 LOC, 219.6% vs. main code):
    • 44 *.go files (11,437 LOC)
    • 3 *.sh files (112 LOC)
    • 3 *.yaml files (32 LOC)
    • 2 *.py files (2 LOC)
  • " *.go" is biggest, containing 98.74% of LOC.
  • " *.py" is smallest, containing 0.02% of LOC.


*.go11437 LOC (98%) 44 files
*.sh112 LOC (<1%) 3 files
*.yaml32 LOC (<1%) 3 files
*.py2 LOC (<1%) 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 12 files match defined criteria (501 LOC, 9.5% vs. main code). All matches are in *.sh files.


*.sh501 LOC (100%) 12 files
Other Code
mod
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Ee]xamples/.*".
    • 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".
  • 61 files match defined criteria (3,019 LOC, 57.2% vs. main code):
    • 26 *.yaml files (1,552 LOC)
    • 9 *.md files (553 LOC)
    • 8 *.py files (340 LOC)
    • 2 *.mod files (295 LOC)
    • 1 *.sh files (101 LOC)
    • 7 *.txt files (89 LOC)
    • 8 *.json files (89 LOC)
  • " *.yaml" is biggest, containing 51.41% of LOC.
  • " *.json" is smallest, containing 2.95% of LOC.


*.yaml1552 LOC (51%) 26 files
*.md553 LOC (18%) 9 files
*.py340 LOC (11%) 8 files
*.mod295 LOC (9%) 2 files
*.sh101 LOC (3%) 1 file
*.txt89 LOC (2%) 7 files
*.json89 LOC (2%) 8 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 15:51