From 3d45fd091eac6a9fcf493f30940bfcf561822e7b Mon Sep 17 00:00:00 2001 From: Aldo Lacuku Date: Thu, 12 Dec 2024 15:49:14 +0100 Subject: [PATCH 1/3] update(makefile): bump golangci-lint to v1.62.2 Signed-off-by: Aldo Lacuku --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 74bea7e2..5d87aa3e 100644 --- a/Makefile +++ b/Makefile @@ -63,7 +63,7 @@ fmt: gci addlicense .PHONY: golangci-lint golangci-lint: ifeq (, $(shell which golangci-lint)) - @go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.52.2 + @go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.62.2 GOLANGCILINT=$(GOBIN)/golangci-lint else GOLANGCILINT=$(shell which golangci-lint) From 7e91006021a1e507c73ab60e9a3fc95c1f801a6d Mon Sep 17 00:00:00 2001 From: Aldo Lacuku Date: Thu, 12 Dec 2024 15:53:07 +0100 Subject: [PATCH 2/3] update(ci/linter): bump golangci-lint to v1.62.2 Signed-off-by: Aldo Lacuku --- .github/workflows/lint.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index febc8435..ec354c99 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -25,7 +25,7 @@ jobs: uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1 with: only-new-issues: true - version: v1.55 + version: v1.62.2 args: --timeout=900s gomodtidy: From 923a1338453cedc2692df68462bbd6a20eb80e92 Mon Sep 17 00:00:00 2001 From: Aldo Lacuku Date: Thu, 12 Dec 2024 15:53:30 +0100 Subject: [PATCH 3/3] update(linter): remove deprecated linters Signed-off-by: Aldo Lacuku --- .golangci.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index f30a7ca4..a0058697 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -44,13 +44,8 @@ linters-settings: - opinionated - performance - style - disabled-checks: - # Conflicts with govet check-shadowing - - sloppyReassign goimports: local-prefixes: github.com/falcosecurity/falcoctl - govet: - check-shadowing: true misspell: locale: US nolintlint: @@ -71,7 +66,7 @@ linters: - errcheck - errorlint - exhaustive - - exportloopref + - copyloopvar # - funlen # - gochecknoglobals # - gochecknoinits