diff options
Diffstat (limited to 'scripts/gofmtcheck.sh')
| -rwxr-xr-x | scripts/gofmtcheck.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/gofmtcheck.sh b/scripts/gofmtcheck.sh new file mode 100755 index 0000000..c09fa20 --- /dev/null +++ b/scripts/gofmtcheck.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + +if [[ -n $(gofmt -l ./) ]]; then echo "Please run gofmt -w ./ to format code"; exit 1; fi; |
