We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 76bf60b + 3cf7572 commit c152f81Copy full SHA for c152f81
Makefile
@@ -0,0 +1,18 @@
1
+fmtcheck:
2
+ "$(CURDIR)/scripts/gofmtcheck.sh"
3
+
4
+fmtfix:
5
+ gofmt -w ./
6
7
+vetcheck:
8
+ go vet ./...
9
10
+copyrightcheck:
11
+ go run github.com/hashicorp/copywrite@latest headers --plan
12
13
+copyrightfix:
14
+ go run github.com/hashicorp/copywrite@latest headers
15
16
+check: copyrightcheck vetcheck fmtcheck
17
18
+fix: copyrightfix fmtfix
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;
0 commit comments