mirror of
https://github.com/kreuzwerker/terraform-provider-docker.git
synced 2026-02-10 06:13:22 -05:00
ci: add gofmt's '-s' option
This commit is contained in:
parent
f213e3a348
commit
9f9bbc0773
2 changed files with 2 additions and 2 deletions
|
|
@ -34,7 +34,7 @@ vet:
|
|||
fi
|
||||
|
||||
fmt:
|
||||
gofmt -w $(GOFMT_FILES)
|
||||
gofmt -s -w $(GOFMT_FILES)
|
||||
|
||||
fmtcheck:
|
||||
@sh -c "'$(CURDIR)/scripts/gofmtcheck.sh'"
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
# Check gofmt
|
||||
echo "==> Checking that code complies with gofmt requirements..."
|
||||
gofmt_files=$(gofmt -l `find . -name '*.go' | grep -v vendor`)
|
||||
gofmt_files=$(gofmt -s -l `find . -name '*.go' | grep -v vendor`)
|
||||
if [[ -n ${gofmt_files} ]]; then
|
||||
echo 'gofmt needs running on the following files:'
|
||||
echo "${gofmt_files}"
|
||||
|
|
|
|||
Loading…
Reference in a new issue