diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5eb591e..7c83ba1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,20 +21,20 @@ jobs: name: ci steps: - name: checkout - uses: actions/checkout@v5 + uses: actions/checkout@v6 - name: setup golang uses: actions/setup-go@v6 with: go-version: ^1.25 - name: golangci-lint - uses: golangci/golangci-lint-action@v8 + uses: golangci/golangci-lint-action@v9 test: runs-on: ubuntu-latest environment: name: ci steps: - name: checkout - uses: actions/checkout@v5 + uses: actions/checkout@v6 - name: setup golang uses: actions/setup-go@v6 with: @@ -54,7 +54,7 @@ jobs: name: ci steps: - name: checkout - uses: actions/checkout@v5 + uses: actions/checkout@v6 - name: setup golang uses: actions/setup-go@v6 with: diff --git a/.golangci.yml b/.golangci.yml index 3f68dae..60c58d1 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -10,10 +10,16 @@ linters: - gochecknoglobals - intrange - ireturn + - modernize - nonamedreturns - testpackage - varnamelen + - wsl settings: + wsl_v5: + allow-first-in-block: true + allow-whole-block: false + branch-max-lines: 2 funlen: lines: 65 gocritic: diff --git a/go.mod b/go.mod index 50de916..92f28be 100644 --- a/go.mod +++ b/go.mod @@ -11,5 +11,5 @@ require ( require ( github.com/segmentio/fasthash v1.0.3 // indirect - golang.org/x/exp v0.0.0-20251023183803-a4bb9ffd2546 // indirect + golang.org/x/exp v0.0.0-20251125195548-87e1e737ad39 // indirect ) diff --git a/go.sum b/go.sum index 9b5b0d2..6ced4d4 100644 --- a/go.sum +++ b/go.sum @@ -8,5 +8,5 @@ github.com/segmentio/fasthash v1.0.3 h1:EI9+KE1EwvMLBWwjpRDc+fEM+prwxDYbslddQGtr github.com/segmentio/fasthash v1.0.3/go.mod h1:waKX8l2N8yckOgmSsXJi7x1ZfdKZ4x7KRMzBtS3oedY= github.com/zyedidia/generic v1.2.1 h1:Zv5KS/N2m0XZZiuLS82qheRG4X1o5gsWreGb0hR7XDc= github.com/zyedidia/generic v1.2.1/go.mod h1:ly2RBz4mnz1yeuVbQA/VFwGjK3mnHGRj1JuoG336Bis= -golang.org/x/exp v0.0.0-20251023183803-a4bb9ffd2546 h1:mgKeJMpvi0yx/sU5GsxQ7p6s2wtOnGAHZWCHUM4KGzY= -golang.org/x/exp v0.0.0-20251023183803-a4bb9ffd2546/go.mod h1:j/pmGrbnkbPtQfxEe5D0VQhZC6qKbfKifgD0oM7sR70= +golang.org/x/exp v0.0.0-20251125195548-87e1e737ad39 h1:DHNhtq3sNNzrvduZZIiFyXWOL9IWaDPHqTnLJp+rCBY= +golang.org/x/exp v0.0.0-20251125195548-87e1e737ad39/go.mod h1:46edojNIoXTNOhySWIWdix628clX9ODXwPsQuG6hsK0=