Skip to content

Commit

Permalink
Update go linter (#1204)
Browse files Browse the repository at this point in the history
This upgrades the version of `golangci-lint` to the latest version, and
removes three deprecated linters, which now error when included because
they are completely unused:
#1192 (comment).
  • Loading branch information
bryfox committed Jul 26, 2024
1 parent a054375 commit ebea946
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ jobs:
with:
go-version-file: go/go.work
- name: install golangci-lint
run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.56.2
run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.59.1
- run: make lint
- run: make test
- name: Check library version
Expand Down
3 changes: 0 additions & 3 deletions go/.golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,16 @@ run:
linters:
disable-all: true
enable:
- deadcode
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- typecheck
- unused
- varcheck
- gocritic
- godot
- gofmt
- ifshort
- misspell
- prealloc
- sqlclosecheck
Expand Down

0 comments on commit ebea946

Please sign in to comment.