Skip to content

Commit

Permalink
Update GolangCI-lint to v1.60.3 (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebrandon1 authored Aug 26, 2024
1 parent 714730b commit 44fabb7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
7 changes: 2 additions & 5 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -54,7 +51,7 @@ linters:
- dogsled
- errcheck
- exhaustive
- exportloopref
- copyloopvar
- funlen
- goconst
- gocritic
Expand Down Expand Up @@ -94,7 +91,7 @@ linters:
# - nestif
# - noctx
# - prealloc
# - exportloopref
# - copyloopvar
# - structcheck
# - testpackage
# - wsl
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions cmd/tnf/fetch/fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 44fabb7

Please sign in to comment.