Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfeistel <6742251-feistel@users.noreply.gitlab.com>2021-04-21 15:32:59 +0300
committerfeistel <6742251-feistel@users.noreply.gitlab.com>2021-04-21 15:33:33 +0300
commit8cbd6941e67a2d0a0ae2433934f8243eacb75559 (patch)
tree605e977b1c08e2239c2c38d56fe88f7704ef53b8 /Makefile.util.mk
parent0b72ebb264acc1f95ff9547dacb2ca3f2924682e (diff)
Add make format to fix linting errors
Diffstat (limited to 'Makefile.util.mk')
-rw-r--r--Makefile.util.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile.util.mk b/Makefile.util.mk
index 781e9abd..7037f2ce 100644
--- a/Makefile.util.mk
+++ b/Makefile.util.mk
@@ -8,6 +8,9 @@ COVERAGE_PACKAGES=$(shell (go list ./... | grep -v $(addprefix -e ,$(IGNORED_DIR
lint: .GOPATH/.ok bin/golangci-lint
$Q ./bin/golangci-lint run ./... --out-format $(OUT_FORMAT) $(LINT_FLAGS) | tee ${REPORT_FILE}
+format: .GOPATH/.ok bin/golangci-lint
+ $Q ./bin/golangci-lint run ./... --fix --out-format $(OUT_FORMAT) $(LINT_FLAGS) | tee ${REPORT_FILE}
+
test: .GOPATH/.ok gitlab-pages
rm -f tests.out
go test $(if $V,-v) ./... ${ARGS} 2>&1 | tee tests.out