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:
parent
1f1de5af61
commit
641854e67c
8
Makefile
8
Makefile
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user