Skip to content

Commit 8707127

Browse files
committed
Update golangci-lint to 2.6.1, add "fmt" target
Update the linter, and add a top-level 'fmt' target to run its built-in formatters. Signed-off-by: Nalin Dahyabhai <[email protected]>
1 parent d406752 commit 8707127

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ ifeq ($(BUILDDEBUG), 1)
5454
endif
5555

5656
# Managed by renovate.
57-
export GOLANGCI_LINT_VERSION := 2.1.0
57+
export GOLANGCI_LINT_VERSION := 2.6.1
5858

5959
# make all BUILDDEBUG=1
6060
# Note: Uses the -N -l go compiler options to disable compiler optimizations
@@ -212,6 +212,10 @@ lint: install.tools
212212
./tests/tools/build/golangci-lint run $(LINTFLAGS)
213213
./tests/tools/build/golangci-lint run --tests=false $(LINTFLAGS)
214214

215+
.PHONY: fmt
216+
fmt: install.tools
217+
./tests/tools/build/golangci-lint fmt $(LINTFLAGS)
218+
215219
# CAUTION: This is not a replacement for RPMs provided by your distro.
216220
# Only intended to build and test the latest unreleased changes.
217221
.PHONY: rpm

0 commit comments

Comments
 (0)