mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-09 00:34:10 -04:00
exclude generated files from the static check
This commit is contained in:
parent
5eb584d1cb
commit
7dedd412f0
1 changed files with 6 additions and 0 deletions
|
|
@ -99,6 +99,12 @@ while read -r error; do
|
|||
continue
|
||||
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%%:*}"
|
||||
pkg="$(dirname "$file")"
|
||||
kube::util::array_contains "$pkg" "${failing_packages[@]}" && in_failing=$? || in_failing=$?
|
||||
|
|
|
|||
Loading…
Reference in a new issue