2018-04-23 17:05:52 +01:00
|
|
|
#!/bin/bash
|
2018-06-21 20:36:39 +01:00
|
|
|
FILES=$(find $PWD -type f ! -path '*vendor/*' \( -iname '*.go' ! -iname "*.pb.go" \))
|
2018-04-23 17:05:52 +01:00
|
|
|
for i in $FILES
|
|
|
|
do
|
|
|
|
if ! grep -q 'Copyright' <<< "$(head -n 2 "$i")"
|
|
|
|
then
|
|
|
|
echo " missing copyright header for $i"
|
|
|
|
fi
|
|
|
|
done
|