Skip to content

Commit

Permalink
chore(deps): Adding gofumpt as a formatting tool
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <[email protected]>
  • Loading branch information
ViBiOh committed Oct 31, 2021
1 parent 39dca83 commit eea7011
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,17 @@ dev: format style test build
.PHONY: init
init:
@curl --disable --silent --show-error --location --max-time 30 "https://raw.githubusercontent.com/ViBiOh/scripts/main/bootstrap" | bash -s -- "-c" "git_hooks" "coverage" "release"
go install github.com/kisielk/errcheck@latest
go install golang.org/x/lint/golint@latest
go install golang.org/x/tools/cmd/goimports@latest
go install "github.com/kisielk/errcheck@latest"
go install "golang.org/x/lint/golint@latest"
go install "golang.org/x/tools/cmd/goimports@latest"
go install "mvdan.cc/gofumpt@latest"
go mod tidy -compat=1.17

## format: Format code. e.g Prettier (js), format (golang)
.PHONY: format
format:
goimports -w $(shell find . -name "*.go")
gofmt -s -w $(shell find . -name "*.go")
gofumpt -s -w $(shell find . -name "*.go")

## style: Check lint, code styling rules. e.g. pylint, phpcs, eslint, style (java) etc ...
.PHONY: style
Expand Down

0 comments on commit eea7011

Please sign in to comment.