Skip to content

Commit

Permalink
Merge pull request #243 from saschagrunert/lint
Browse files Browse the repository at this point in the history
Update golangci-lint and config
  • Loading branch information
openshift-merge-bot[bot] authored Jan 30, 2025
2 parents e305773 + c7093b6 commit 9619b9a
Show file tree
Hide file tree
Showing 7 changed files with 131 additions and 4 deletions.
9 changes: 7 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ linters:
- errname
- errorlint
- exhaustive
- exptostd
- fatcontext
- forbidigo
- forcetypeassert
Expand All @@ -48,6 +49,7 @@ linters:
- gosmopolitan
- govet
- grouper
- iface
- importas
- inamedparam
- ineffassign
Expand All @@ -62,7 +64,9 @@ linters:
- nakedret
- nestif
- nilerr
- nilnesserr
- nilnil
- nlreturn
- noctx
- nolintlint
- nosprintfhostport
Expand All @@ -73,6 +77,7 @@ linters:
- promlinter
- protogetter
- reassign
- recvcheck
- revive
- rowserrcheck
- sloglint
Expand All @@ -91,8 +96,10 @@ linters:
- unparam
- unused
- usestdlibvars
- usetesting
- wastedassign
- whitespace
- wsl
- zerologlint
# - cyclop
# - depguard
Expand All @@ -104,13 +111,11 @@ linters:
# - ireturn
# - lll
# - mnd
# - nlreturn
# - nonamedreturns
# - tagliatelle
# - testpackage
# - varnamelen
# - wrapcheck
# - wsl
linters-settings:
revive:
rules:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ BUILD_INFO := $(shell date +%s)

BUILD_PATH := $(shell pwd)/build
GOLANGCI_LINT := ${BUILD_PATH}/golangci-lint
GOLANGCI_LINT_VERSION := v1.61.0
GOLANGCI_LINT_VERSION := v1.63.4

# If GOPATH not specified, use one in the local directory
ifeq ($(GOPATH),)
Expand Down
Loading

0 comments on commit 9619b9a

Please sign in to comment.