1
0
mirror of https://github.com/nikoksr/notify.git synced 2025-01-05 22:53:35 +02:00

build(make): simplify Makefile

Replace complex formatting loop with simple gofumpt call. Remove two
instructions from 'setup' function.
This commit is contained in:
Niko Köser 2021-05-27 12:33:38 +02:00
parent 1f1de5af61
commit 641854e67c
No known key found for this signature in database
GPG Key ID: F3F28C118DAA6375

View File

@ -7,8 +7,6 @@ export GOPROXY = https://proxy.golang.org,direct
# Install all the build and lint dependencies
setup:
go mod download
go generate -v ./...
go mod tidy
.PHONY: setup
@ -25,9 +23,9 @@ test:
# CODE HEALTH
###############################################################################
# gofumports and gci all go files
# gofumpt and gci all go files
fmt:
find . -name '*.go' -not -wholename './vendor/*' | while read -r file; do gofumpt -w "$$file"; done
gofumpt -w .
gci -w -local github.com/nikoksr/notify .
.PHONY: fmt
@ -36,7 +34,7 @@ lint:
golangci-lint run ./...
.PHONY: lint
ci: test lint
ci: lint test
.PHONY: ci
.DEFAULT_GOAL := ci