refactor: log with zap

This commit is contained in:
cyrilix committed 2021-10-12 17:57:12 +02:00
1 parent b637ef9b5f
commit 164445b16c
443 files changed
+30977 -39011

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
#!/bin/bash -e
ERROR_COUNT=0
while read -r file
do
case "$(head -1 "${file}")" in
*"Copyright (c) "*" Uber Technologies, Inc.")
# everything's cool
;;
*)
echo "$file is missing license header."
(( ERROR_COUNT++ ))
;;
esac
done < <(git ls-files "*\.go")
exit $ERROR_COUNT