GoogleCloudPlatform / lustre-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
tpl
mod
in
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.

main7426 LOC (63%) 54 files
test3224 LOC (27%) 26 files
generated0 LOC (0%) 0 files
build and deployment394 LOC (3%) 11 files
other647 LOC (5%) 18 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
tpl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 54 files match defined criteria (7,426 LOC, 100.0% vs. main code):
    • 27 *.go files (6,180 LOC)
    • 25 *.yaml files (1,042 LOC)
    • 1 *.py files (147 LOC)
    • 1 *.tpl files (57 LOC)
  • " *.go" is biggest, containing 83.22% of LOC.
  • " *.tpl" is smallest, containing 0.77% of LOC.


*.go6180 LOC (83%) 27 files
*.yaml1042 LOC (14%) 25 files
*.py147 LOC (1%) 1 file
*.tpl57 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*_test[.].*".
  • 26 files match defined criteria (3,224 LOC, 43.4% vs. main code):
    • 20 *.go files (3,138 LOC)
    • 2 *.sh files (51 LOC)
    • 1 *.in files (20 LOC)
    • 1 *.yaml files (13 LOC)
    • 2 *.py files (2 LOC)
  • " *.go" is biggest, containing 97.33% of LOC.
  • " *.py" is smallest, containing 0.06% of LOC.


*.go3138 LOC (97%) 20 files
*.sh51 LOC (1%) 2 files
*.in20 LOC (<1%) 1 file
*.yaml13 LOC (<1%) 1 file
*.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".
  • 11 files match defined criteria (394 LOC, 5.3% vs. main code). All matches are in *.sh files.


*.sh394 LOC (100%) 11 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 ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*/go[.]mod".
  • 18 files match defined criteria (647 LOC, 8.7% vs. main code):
    • 4 *.md files (198 LOC)
    • 2 *.json files (177 LOC)
    • 1 *.mod files (111 LOC)
    • 7 *.txt files (89 LOC)
    • 4 *.yaml files (72 LOC)
  • " *.md" is biggest, containing 30.6% of LOC.
  • " *.yaml" is smallest, containing 11.13% of LOC.


*.md198 LOC (30%) 4 files
*.json177 LOC (27%) 2 files
*.mod111 LOC (17%) 1 file
*.txt89 LOC (13%) 7 files
*.yaml72 LOC (11%) 4 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 16:10