From b7405dec5b6a1d58ddeba69ac75c1ab0e1e36873 Mon Sep 17 00:00:00 2001 From: Bruno Michel Date: Tue, 10 Sep 2024 09:13:23 +0200 Subject: [PATCH] Update golangci-lint to v1.61.0 --- .golangci.yaml | 5 ++--- Makefile | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.golangci.yaml b/.golangci.yaml index 58308e2feac..2db1664f752 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -31,8 +31,7 @@ linters: # Enable specific linter # https://golangci-lint.run/usage/linters/#enabled-by-default enable: - - bidichk - - exportloopref + - bidichk - errname - forbidigo - gocritic @@ -42,7 +41,7 @@ linters: - nolintlint - tenv - unconvert - - unused + - unused - whitespace # Run only fast linters from enabled linters set (first run won't be fast) # Default: false diff --git a/Makefile b/Makefile index ab86a28d705..6efa86f5689 100644 --- a/Makefile +++ b/Makefile @@ -26,7 +26,7 @@ lint: scripts/golangci-lint .PHONY: lint scripts/golangci-lint: Makefile - @curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b ./scripts v1.60.1 + @curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b ./scripts v1.61.0 ## jslint: enforce a consistent code style for Js code jslint: scripts/node_modules