Skip to content

Commit 44fabb7

Browse files
authored
Update GolangCI-lint to v1.60.3 (#183)
1 parent 714730b commit 44fabb7

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

.golangci.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ linters-settings:
44
funlen:
55
lines: 60
66
statements: 45
7-
gci:
8-
local-prefixes: github.com/golangci/golangci-lint
97
goconst:
108
min-len: 4
119
min-occurrences: 2
@@ -28,7 +26,6 @@ linters-settings:
2826
# do not include the "operation" and "assign"
2927
checks: argument,case,condition,return
3028
govet:
31-
check-shadowing: true
3229
settings:
3330
printf:
3431
funcs:
@@ -54,7 +51,7 @@ linters:
5451
- dogsled
5552
- errcheck
5653
- exhaustive
57-
- exportloopref
54+
- copyloopvar
5855
- funlen
5956
- goconst
6057
- gocritic
@@ -94,7 +91,7 @@ linters:
9491
# - nestif
9592
# - noctx
9693
# - prealloc
97-
# - exportloopref
94+
# - copyloopvar
9895
# - structcheck
9996
# - testpackage
10097
# - wsl

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ GO_PACKAGES=$(shell go list ./... | grep -v vendor)
2525
vet
2626

2727
OCT_TOOL_NAME=oct
28-
GOLANGCI_VERSION=v1.60.1
28+
GOLANGCI_VERSION=v1.60.3
2929

3030
# Run the unit tests and build all binaries
3131
build:

cmd/tnf/fetch/fetch.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ func getOperatorCatalog(data *CertifiedCatalog) error {
255255
}
256256
}
257257

258+
//nolint:gosec
258259
data.Operators = int(total)
259260

260261
log.Info("Time to process all the operators: ", time.Since(start))

0 commit comments

Comments
 (0)