concourse / concourse

Functions prefixed with Get should return a value RVV-A0006
Anti-pattern
Major
1 occurrence in this check
function 'getNotRunningPodLogs' seems to be a getter but it does not return any result
336	return pods.Items
337}
338
339func getNotRunningPodLogs() {340	events, _ := kubeClient.CoreV1().Events(namespace).List(context.TODO(), metav1.ListOptions{FieldSelector: "status.phase!=Running", TypeMeta: metav1.TypeMeta{Kind: "Pod"}})
341	for _, item := range events.Items {
342		fmt.Println(item)