Skip to content

Commit

Permalink
chore: update to go 1.22 and adjust linter rules (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
tessig authored Nov 20, 2024
1 parent 8e15da8 commit 5f499b2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.57
version: v1.61
only-new-issues: true
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.21', '1.*' ]
go: [ '1.22', '1.*' ]
name: Tests
steps:
- uses: actions/checkout@v4
Expand Down
10 changes: 5 additions & 5 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,20 @@ linters:
- bodyclose
- containedctx
- contextcheck
- copyloopvar
- cyclop
- durationcheck
- err113
- errcheck
- errname
- errorlint
- exhaustive
- exportloopref
- forbidigo
- forcetypeassert
- gocognit
- goconst
- gocritic
- goerr113
- gofmt
- gomnd
- gomoddirectives
- gosec
- gosimple
Expand All @@ -45,6 +44,7 @@ linters:
- ineffassign
- makezero
- misspell
- mnd
- nakedret
- nestif
- nilerr
Expand Down Expand Up @@ -78,14 +78,14 @@ issues:
- path: _test\.go
linters:
- containedctx
- err113
- forcetypeassert
- goconst
- goerr113
- varnamelen
- wrapcheck

linters-settings:
gomnd:
mnd:
ignored-functions:
- context.WithTimeout
nolintlint:
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module flamingo.me/dingo

go 1.21
go 1.22

require github.com/stretchr/testify v1.9.0

Expand Down

0 comments on commit 5f499b2

Please sign in to comment.