Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.22', '1.23' ]
go: [ '1.24', '1.23' ]
name: Go Version ${{ matrix.go }}
steps:
- uses: actions/checkout@v3
Expand All @@ -28,7 +28,7 @@ jobs:
go-version: ${{ matrix.go }}

- name: Install
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.62.2
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.0.1

- name: Build
run: make
Expand Down
70 changes: 41 additions & 29 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,47 @@
version: "2"
linters:
enable:
- depguard
- staticcheck
- misspell
- revive
- unconvert
settings:
depguard:
rules:
main:
files:
- $all
deny:
- pkg: io/ioutil
revive:
severity: error
rules:
- name: indent-error-flow
severity: warning
disabled: false
- name: error-strings
disabled: false
staticcheck:
checks:
- -SA1019
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
paths:
- third_party$
- builtin$
- examples$
formatters:
enable:
- gofmt
- goimports
- revive
- ineffassign
- govet
- unused
- misspell

linters-settings:
depguard:
rules:
main:
files:
- $all
deny:
- pkg: "io/ioutil"

revive:
severity: error
rules:
- name: indent-error-flow
severity: warning
disabled: false

- name: error-strings
disabled: false

staticcheck:
# Suppress reports of deprecated packages
checks: ["-SA1019"]
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$
Loading