Skip to content

Commit

Permalink
lint: update configs, golangci-lint to v1.59.0
Browse files Browse the repository at this point in the history
Remove deprecated and deactivated linters from .golangci.yml.
  • Loading branch information
starius committed Jun 2, 2024
1 parent 4a01ac1 commit 442bed7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
16 changes: 2 additions & 14 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ linters-settings:
whitespace:
multi-func: true
multi-if: true
tagliatelle:
tagliatelle:
case:
rules:
json: snake
Expand All @@ -31,17 +31,15 @@ linters:
- gochecknoglobals
- gosec
- funlen
- maligned
- varnamelen
- wrapcheck
- testpackage
- gomnd
- goerr113
- err113
- exhaustruct
- forbidigo
- gocognit
- nestif
- ifshort
- wsl
- cyclop
- gocyclo
Expand All @@ -53,16 +51,6 @@ linters:
- noctx
- gofumpt
- exhaustive

# deprecated
- interfacer
- scopelint
- golint
- exhaustivestruct
- nosnakecase
- deadcode
- structcheck
- varcheck

issues:
exclude-rules:
Expand Down
4 changes: 2 additions & 2 deletions tools/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.19.4-buster
FROM golang:1.22.3-bookworm

RUN apt-get update && apt-get install -y git
ENV GOCACHE=/tmp/build/.cache
Expand All @@ -11,7 +11,7 @@ RUN cd /tmp \
&& mkdir -p /tmp/build/.cache \
&& mkdir -p /tmp/build/.modcache \
&& cd /tmp/tools \
&& go install -trimpath github.com/golangci/golangci-lint/cmd/golangci-lint \
&& go install -trimpath github.com/golangci/golangci-lint/cmd/golangci-lint@v1.59.0 \
&& chmod -R 777 /tmp/build/

WORKDIR /build

0 comments on commit 442bed7

Please sign in to comment.