summaryrefslogtreecommitdiffstats
path: root/vendor/go.uber.org/zap/check_license.sh
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/go.uber.org/zap/check_license.sh')
-rwxr-xr-xvendor/go.uber.org/zap/check_license.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/vendor/go.uber.org/zap/check_license.sh b/vendor/go.uber.org/zap/check_license.sh
new file mode 100755
index 000000000..345ac8b89
--- /dev/null
+++ b/vendor/go.uber.org/zap/check_license.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