platform/v1-storageclass.go
Function execV1StorageResource
has 101 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func execV1StorageResource(k kubernetes.Interface, objdep *storagev1.StorageClass, namespace string, opts configuration.Options, commandFlag configuration.CommandFlag) (state.State, error) {
name := "StorageClass"
client := k.StorageV1().StorageClasses()
Function execV1StorageResource
has 22 return statements (exceeds 4 allowed). Open
Open
func execV1StorageResource(k kubernetes.Interface, objdep *storagev1.StorageClass, namespace string, opts configuration.Options, commandFlag configuration.CommandFlag) (state.State, error) {
name := "StorageClass"
client := k.StorageV1().StorageClasses()
Function execV1StorageResource
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func execV1StorageResource(k kubernetes.Interface, objdep *storagev1.StorageClass, namespace string, opts configuration.Options, commandFlag configuration.CommandFlag) (state.State, error) {