From 44fabb763b88446f318191da0e8159ccca6b7240 Mon Sep 17 00:00:00 2001 From: Brandon Palm Date: Mon, 26 Aug 2024 14:10:44 -0500 Subject: [PATCH] Update GolangCI-lint to v1.60.3 (#183) --- .golangci.yml | 7 ++----- Makefile | 2 +- cmd/tnf/fetch/fetch.go | 1 + 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index b5501a5..9c7b5d9 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -4,8 +4,6 @@ linters-settings: funlen: lines: 60 statements: 45 - gci: - local-prefixes: github.com/golangci/golangci-lint goconst: min-len: 4 min-occurrences: 2 @@ -28,7 +26,6 @@ linters-settings: # do not include the "operation" and "assign" checks: argument,case,condition,return govet: - check-shadowing: true settings: printf: funcs: @@ -54,7 +51,7 @@ linters: - dogsled - errcheck - exhaustive - - exportloopref + - copyloopvar - funlen - goconst - gocritic @@ -94,7 +91,7 @@ linters: # - nestif # - noctx # - prealloc - # - exportloopref + # - copyloopvar # - structcheck # - testpackage # - wsl diff --git a/Makefile b/Makefile index d9b9ed4..1a583f8 100644 --- a/Makefile +++ b/Makefile @@ -25,7 +25,7 @@ GO_PACKAGES=$(shell go list ./... | grep -v vendor) vet OCT_TOOL_NAME=oct -GOLANGCI_VERSION=v1.60.1 +GOLANGCI_VERSION=v1.60.3 # Run the unit tests and build all binaries build: diff --git a/cmd/tnf/fetch/fetch.go b/cmd/tnf/fetch/fetch.go index 2c480a5..1f37fb9 100644 --- a/cmd/tnf/fetch/fetch.go +++ b/cmd/tnf/fetch/fetch.go @@ -255,6 +255,7 @@ func getOperatorCatalog(data *CertifiedCatalog) error { } } + //nolint:gosec data.Operators = int(total) log.Info("Time to process all the operators: ", time.Since(start))