Skip to content

Commit

Permalink
chore: update linters and go-version in GitHub actions workflow
Browse files Browse the repository at this point in the history
- Update the `go-version` to `"^1.21"` in the `.github/workflows/go.yml` file
- Remove the `deadcode` linter and add the `structcheck` and `varcheck` linters in the `.golangci.yml` file

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
  • Loading branch information
appleboy committed Nov 24, 2023
1 parent 0e6dbd8 commit 3c14b06
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Setup go
uses: actions/setup-go@v4
with:
go-version: "^1.18"
go-version: "^1.21"
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup golangci-lint
Expand Down
3 changes: 0 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ linters:
fast: false
enable:
- bodyclose
- deadcode
- depguard
- dogsled
- dupl
Expand All @@ -29,13 +28,11 @@ linters:
- nolintlint
- rowserrcheck
- staticcheck
- structcheck
- stylecheck
- typecheck
- unconvert
- unparam
- unused
- varcheck
- whitespace
- gofumpt

Expand Down

0 comments on commit 3c14b06

Please sign in to comment.