mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	exclude generated files from the static check
This commit is contained in:
		@@ -99,6 +99,12 @@ while read -r error; do
 | 
				
			|||||||
    continue
 | 
					    continue
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  # Ignore the errors caused by the generated files
 | 
				
			||||||
 | 
					  ignore_gen_files=".*/zz_generated\.[a-z]+\.go:.*"
 | 
				
			||||||
 | 
					  if [[ $error =~ $ignore_gen_files ]]; then
 | 
				
			||||||
 | 
					    continue
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  file="${error%%:*}"
 | 
					  file="${error%%:*}"
 | 
				
			||||||
  pkg="$(dirname "$file")"
 | 
					  pkg="$(dirname "$file")"
 | 
				
			||||||
  kube::util::array_contains "$pkg" "${failing_packages[@]}" && in_failing=$? || in_failing=$?
 | 
					  kube::util::array_contains "$pkg" "${failing_packages[@]}" && in_failing=$? || in_failing=$?
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user