Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download 290 Bytes
Copy Edit Web IDE Raw Blame History
#!/usr/bin/env bash
licRes=$(for file in $(find . -type f -iname '*.go' ! -path './vendor/*'); do
head -n3 "${file}" | grep -Eq "(Copyright|generated|GENERATED)" || echo -e " ${file}"
if [ -n "${licRes}" ]; then
echo -e "license header checking failed:\n${licRes}"
exit 255

Comment ( 0 )

Sign in for post a comment