summaryrefslogtreecommitdiffstats
path: root/vendor/go.uber.org/zap/checklicense.sh
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/go.uber.org/zap/checklicense.sh')
-rw-r--r--vendor/go.uber.org/zap/checklicense.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/vendor/go.uber.org/zap/checklicense.sh b/vendor/go.uber.org/zap/checklicense.sh
new file mode 100644
index 00000000..345ac8b8
--- /dev/null
+++ b/vendor/go.uber.org/zap/checklicense.sh
@@ -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