Skip to content

Commit

Permalink
update gofmt
Browse files Browse the repository at this point in the history
Signed-off-by: Marcelo Amaral <marcelo.amaral1@ibm.com>
  • Loading branch information
Marcelo Amaral committed Sep 13, 2022
1 parent ce101c5 commit 649dd11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ test-verbose: ginkgo-set tidy-vendor
@go test $(GO_BUILD_FLAGS) -v ./... --race --bench=. -cover --count=1 --vet=all

format:
gofmt -l -w pkg/ cmd/
gofmt -e -d -s -l -w pkg/ cmd/

golint:
./hack/golint.sh
Expand Down
2 changes: 1 addition & 1 deletion automation/presubmit-tests/gofmt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ set -e

echo "Checking go format"
sources="pkg/ cmd/"
unformatted=$(gofmt -l $sources)
unformatted=$(gofmt -e -d -s -l $sources)
if [ ! -z "$unformatted" ]; then
# Some files are not gofmt.
echo >&2 "The following Go files must be formatted with gofmt:"
Expand Down

0 comments on commit 649dd11

Please sign in to comment.