diff --git a/Makefile b/Makefile index 72ca21e..413a114 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,8 @@ XK6_VERSION=1.3.5 VERSION ?= $(shell git describe --tags --match "v*" --abbrev=8 2>/dev/null | sed -r 's,^v([0-9]+\.[0-9]+)\.([0-9]+)(-.*)?$$,\1 \2 \3,' | while read mm patch suffix; do if [ -z "$$suffix" ]; then echo $$mm.$$patch; else patch=`expr $$patch + 1`; echo $$mm.$${patch}-pre$$suffix; fi; done) LDFLAGS:=-s -w -X 'go.k6.io/k6/lib/consts.VersionDetails=xk6-neofs-$(VERSION)' +.PHONY: build install_xk6 test lint format modernize + # Build xk6-neofs binary build: install_xk6 @echo "=> Building binary" @@ -33,3 +35,8 @@ format: @gofmt -s -w ./ @echo "⇒ Processing goimports check" @goimports -w ./ + +# Prettify code +modernize: + @echo "⇒ Processing modernize check" + @go run golang.org/x/tools/go/analysis/passes/modernize/cmd/modernize@latest -fix ./...