Skip to content

Commit 5ffd149

Browse files
committed
Update golangci-lint and zerolint version
Signed-off-by: Oliver Eikemeier <[email protected]>
1 parent af1015c commit 5ffd149

File tree

9 files changed

+32
-24
lines changed

9 files changed

+32
-24
lines changed

.custom-gcl.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
version: v2.2.1
2+
version: v2.4.0
33
plugins:
44
- module: fillmore-labs.com/zerolint-golangci-plugin
55
path: .

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,20 @@ jobs:
1818
runs-on: ubuntu-24.04
1919
strategy:
2020
matrix:
21-
go-version: ["1.24.4", "1.23.10"]
21+
go-version: ["1.25.0", "1.24.6"]
2222
env:
2323
GOTOOLCHAIN: local
2424
steps:
2525
- name: ✔ Check out
26-
uses: actions/checkout@v4
26+
uses: actions/checkout@v5
2727
- name: 🐹 Set up Go ${{ matrix.go-version }}
2828
uses: actions/setup-go@v5
2929
with:
3030
go-version: ${{ matrix.go-version }}
3131
- name: 🧸 golangci-lint
3232
uses: golangci/golangci-lint-action@v8
3333
with:
34-
version: v2.2.1
34+
version: v2.4.0
3535
args: --config=.golangci-default.yaml
3636
- name: 🔨 Test
3737
run: golangci-lint custom -v && ./custom-gcl run -v .

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
.*
22
!/.buildkite/
3-
!/.codeclimate.yml
43
!/.custom-gcl.yaml
5-
!/.envrc
64
!/.gitattributes
75
!/.github/
86
!/.gitignore

.golangci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
version: "2"
33

44
run:
5-
go: 1.23.10
5+
go: 1.24.6
66
modules-download-mode: readonly
77

88
linters:

.pre-commit-config.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
---
2+
# yaml-language-server: $schema=https://json.schemastore.org/pre-commit-config.json
23
repos:
34
- repo: https://github.com/google/yamlfmt
4-
rev: v0.16.0
5+
rev: v0.17.2
56
hooks:
67
- id: yamlfmt
8+
- repo: https://github.com/google/keep-sorted
9+
rev: v0.7.0
10+
hooks:
11+
- id: keep-sorted
12+
- repo: https://github.com/DavidAnson/markdownlint-cli2
13+
rev: v0.18.1
14+
hooks:
15+
- id: markdownlint-cli2

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ Add a file `.custom-gcl.yaml` to your source with
1010

1111
```YAML
1212
---
13-
version: v2.2.1
13+
version: v2.4.0
1414
plugins:
1515
- module: fillmore-labs.com/zerolint-golangci-plugin
16-
version: v0.0.12
16+
version: v0.0.13
1717
```
1818
1919
then run `golangci-lint custom`. You get an `custom-gcl` executable that can be configured in `.golangci.yaml`:

go.mod

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
module fillmore-labs.com/zerolint-golangci-plugin
22

3-
go 1.23.0
3+
go 1.24.0
44

5-
toolchain go1.24.4
5+
toolchain go1.25.0
66

77
require (
8-
fillmore-labs.com/zerolint v0.0.12
8+
fillmore-labs.com/zerolint v0.0.13
99
github.com/golangci/plugin-module-register v0.1.2
10-
golang.org/x/tools v0.34.0
10+
golang.org/x/tools v0.36.0
1111
)

go.sum

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
fillmore-labs.com/zerolint v0.0.12 h1:cjC/ii5mq4I0TpSLlfxBzOr6TzCYMDhjKmfhYrvsRRw=
2-
fillmore-labs.com/zerolint v0.0.12/go.mod h1:unfJD2odQcKFpnv/zG6h9dUt8uBVt/gUb334C/3LTns=
1+
fillmore-labs.com/zerolint v0.0.13 h1:sgOZzEcZt1nmnIrgnSatbxgsjKCmf1QU14qdEZiWt9I=
2+
fillmore-labs.com/zerolint v0.0.13/go.mod h1:6Z5U0Qywg9dizUtPVkfva7NTnvhfLZwTu+ccNOddDLo=
33
github.com/golangci/plugin-module-register v0.1.2 h1:e5WM6PO6NIAEcij3B053CohVp3HIYbzSuP53UAYgOpg=
44
github.com/golangci/plugin-module-register v0.1.2/go.mod h1:1+QGTsKBvAIvPvoY/os+G5eoqxWn70HYDm2uvUyGuVw=
5-
golang.org/x/mod v0.25.0 h1:n7a+ZbQKQA/Ysbyb0/6IbB1H/X41mKgbhfv7AfG/44w=
6-
golang.org/x/mod v0.25.0/go.mod h1:IXM97Txy2VM4PJ3gI61r1YEk/gAj6zAHN3AdZt6S9Ww=
7-
golang.org/x/sync v0.15.0 h1:KWH3jNZsfyT6xfAfKiz6MRNmd46ByHDYaZ7KSkCtdW8=
8-
golang.org/x/sync v0.15.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA=
9-
golang.org/x/tools v0.34.0 h1:qIpSLOxeCYGg9TrcJokLBG4KFA6d795g0xkBkiESGlo=
10-
golang.org/x/tools v0.34.0/go.mod h1:pAP9OwEaY1CAW3HOmg3hLZC5Z0CCmzjAF2UQMSqNARg=
5+
golang.org/x/mod v0.27.0 h1:kb+q2PyFnEADO2IEF935ehFUXlWiNjJWtRNgBLSfbxQ=
6+
golang.org/x/mod v0.27.0/go.mod h1:rWI627Fq0DEoudcK+MBkNkCe0EetEaDSwJJkCcjpazc=
7+
golang.org/x/sync v0.16.0 h1:ycBJEhp9p4vXvUZNszeOq0kGTPghopOL8q0fq3vstxw=
8+
golang.org/x/sync v0.16.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA=
9+
golang.org/x/tools v0.36.0 h1:kWS0uv/zsvHEle1LbV5LE8QujrxB3wfQyxHfhOk0Qkg=
10+
golang.org/x/tools v0.36.0/go.mod h1:WBDiHKJK8YgLHlcQPYQzNCkUxUypCaa5ZegCVutKm+s=

plugin.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@ package plugin
1919
import (
2020
"regexp"
2121

22-
"fillmore-labs.com/zerolint/pkg/zerolint"
23-
"fillmore-labs.com/zerolint/pkg/zerolint/level"
2422
"github.com/golangci/plugin-module-register/register"
2523
"golang.org/x/tools/go/analysis"
24+
25+
"fillmore-labs.com/zerolint/pkg/zerolint"
26+
"fillmore-labs.com/zerolint/pkg/zerolint/level"
2627
)
2728

2829
func init() { //nolint:gochecknoinits

0 commit comments

Comments
 (0)