AlexsJones/gravitywell

View on GitHub
platform/v1beta1-storageclass.go

Summary

Maintainability
B
5 hrs
Test Coverage

Function execV1Beta1StorageResouce has 101 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func execV1Beta1StorageResouce(k kubernetes.Interface, objdep *storagev1b1.StorageClass, namespace string, opts configuration.Options, commandFlag configuration.CommandFlag) (state.State, error) {
    name := "StorageClass"

    client := k.StorageV1beta1().StorageClasses()

Severity: Major
Found in platform/v1beta1-storageclass.go - About 3 hrs to fix

    Function execV1Beta1StorageResouce has 22 return statements (exceeds 4 allowed).
    Open

    func execV1Beta1StorageResouce(k kubernetes.Interface, objdep *storagev1b1.StorageClass, namespace string, opts configuration.Options, commandFlag configuration.CommandFlag) (state.State, error) {
        name := "StorageClass"
    
        client := k.StorageV1beta1().StorageClasses()
    
    
    Severity: Major
    Found in platform/v1beta1-storageclass.go - About 2 hrs to fix

      Function execV1Beta1StorageResouce has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      func execV1Beta1StorageResouce(k kubernetes.Interface, objdep *storagev1b1.StorageClass, namespace string, opts configuration.Options, commandFlag configuration.CommandFlag) (state.State, error) {
      Severity: Minor
      Found in platform/v1beta1-storageclass.go - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status