mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
Merge pull request #106418 from SataQiu/hack-ignore-generated-files
Exclude generated files from the static check
This commit is contained in:
commit
552c2964bc
@ -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=$?
|
||||||
|
Loading…
Reference in New Issue
Block a user