Skip to content

Commit

Permalink
upgrade linter (#163)
Browse files Browse the repository at this point in the history
Signed-off-by: Kent <[email protected]>
  • Loading branch information
krancour authored Aug 4, 2023
1 parent b755ace commit 39f1088
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.52.2
version: v1.53.3

build-image:
needs: [test-unit, lint]
Expand Down
6 changes: 0 additions & 6 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ linters:
disable-all: true
enable:
- bodyclose
- depguard
- errcheck
- exportloopref
- forcetypeassert
Expand All @@ -30,11 +29,6 @@ linters:

# all available settings for linters we enable
linters-settings:
depguard:
list-type: blacklist
include-go-root: false
packages:
- github.com/davecgh/go-spew/spew
errcheck:
# report about not checking of errors in type assertions: `a := b.(MyStruct)`;
# default is false: such cases aren't reported by default.
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM golang:1.20.7-bookworm

ARG TARGETARCH

ARG GOLANGCI_LINT_VERSION=1.52.2
ARG GOLANGCI_LINT_VERSION=1.53.3

RUN cd /usr/local/bin \
&& curl -sSfL https://github.com/golangci/golangci-lint/releases/download/v${GOLANGCI_LINT_VERSION}/golangci-lint-${GOLANGCI_LINT_VERSION}-linux-${TARGETARCH}.tar.gz \
Expand Down

0 comments on commit 39f1088

Please sign in to comment.