platform/v1autoscaling-horizontalpodautoscaler.go
Function execV1HorizontalPodAutoscaler
has 101 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func execV1HorizontalPodAutoscaler(k kubernetes.Interface, objdep *autoscalingv1.HorizontalPodAutoscaler, namespace string, opts configuration.Options, commandFlag configuration.CommandFlag) (state.State, error) {
name := "HorizontalPodAutoscaler"
client := k.AutoscalingV1().HorizontalPodAutoscalers(namespace)
Function execV1HorizontalPodAutoscaler
has 22 return statements (exceeds 4 allowed). Open
Open
func execV1HorizontalPodAutoscaler(k kubernetes.Interface, objdep *autoscalingv1.HorizontalPodAutoscaler, namespace string, opts configuration.Options, commandFlag configuration.CommandFlag) (state.State, error) {
name := "HorizontalPodAutoscaler"
client := k.AutoscalingV1().HorizontalPodAutoscalers(namespace)
Function execV1HorizontalPodAutoscaler
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func execV1HorizontalPodAutoscaler(k kubernetes.Interface, objdep *autoscalingv1.HorizontalPodAutoscaler, namespace string, opts configuration.Options, commandFlag configuration.CommandFlag) (state.State, error) {