Skip to content

Commit f2323d6

Browse files
committed
Update zerolint version
Signed-off-by: Oliver Eikemeier <[email protected]>
1 parent e6e21f1 commit f2323d6

File tree

6 files changed

+14
-8
lines changed

6 files changed

+14
-8
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: v1.60.1
2+
version: v1.60.3
33
plugins:
44
- module: fillmore-labs.com/zerolint-golangci-plugin
55
path: .

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- name: 🧸 golangci-lint
3333
uses: golangci/golangci-lint-action@v6
3434
with:
35-
version: v1.60.1
35+
version: v1.60.3
3636
args: --config=.golangci-default.yaml
3737
- name: 🔨 Test
3838
run: golangci-lint custom -v && ./custom-gcl run -v .

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: v1.60.1
13+
version: v1.60.3
1414
plugins:
1515
- module: fillmore-labs.com/zerolint-golangci-plugin
16-
version: v0.0.3
16+
version: v0.0.4
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.22
55
toolchain go1.23.0
66

77
require (
8-
fillmore-labs.com/zerolint v0.0.3
8+
fillmore-labs.com/zerolint v0.0.4
99
github.com/golangci/plugin-module-register v0.1.1
1010
golang.org/x/tools v0.24.0
1111
)

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
fillmore-labs.com/zerolint v0.0.3 h1:SLCJA66I4nMahf+uBbuhStDxV+P9bKZzI0ox+rkicnY=
2-
fillmore-labs.com/zerolint v0.0.3/go.mod h1:uG/Zq5BdtVpPjYfo//pHAZdhtacBah4YMvpzNZz3nS8=
1+
fillmore-labs.com/zerolint v0.0.4 h1:QkypV9GaDDgecOJr3q2bI0EhcKVeV54ngcgGaW0gM2I=
2+
fillmore-labs.com/zerolint v0.0.4/go.mod h1:uzmGDOy06hHUUa6MTkthR8bdAocLhWdRw/f2HfYOegw=
33
github.com/golangci/plugin-module-register v0.1.1 h1:TCmesur25LnyJkpsVrupv1Cdzo+2f7zX0H6Jkw1Ol6c=
44
github.com/golangci/plugin-module-register v0.1.1/go.mod h1:TTpqoB6KkwOJMV8u7+NyXMrkwwESJLOkfl9TxR1DGFc=
55
golang.org/x/mod v0.20.0 h1:utOm6MM3R3dnawAiJgn0y+xvuYRsm1RKM/4giyfDgV0=

plugin.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,13 @@ func (p Plugin) BuildAnalyzers() ([]*analysis.Analyzer, error) {
3939
excludes[ex] = struct{}{}
4040
}
4141

42-
v := visitor.Visitor{Pass: pass, Excludes: excludes, Basic: p.settings.Basic}
42+
v := visitor.Run{
43+
Visitor: visitor.Visitor{
44+
Pass: pass,
45+
Excludes: excludes,
46+
},
47+
Basic: p.settings.Basic,
48+
}
4349
v.Run()
4450

4551
return any(nil), nil

0 commit comments

Comments
 (0)