Skip to content

Commit

Permalink
Update zerolint version
Browse files Browse the repository at this point in the history
Signed-off-by: Oliver Eikemeier <[email protected]>
  • Loading branch information
eikemeier committed Sep 2, 2024
1 parent e6e21f1 commit f2323d6
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .custom-gcl.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
version: v1.60.1
version: v1.60.3
plugins:
- module: fillmore-labs.com/zerolint-golangci-plugin
path: .
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: 🧸 golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.60.1
version: v1.60.3
args: --config=.golangci-default.yaml
- name: 🔨 Test
run: golangci-lint custom -v && ./custom-gcl run -v .
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ Add a file `.custom-gcl.yaml` to your source with

```YAML
---
version: v1.60.1
version: v1.60.3
plugins:
- module: fillmore-labs.com/zerolint-golangci-plugin
version: v0.0.3
version: v0.0.4
```
then run `golangci-lint custom`. You get an `custom-gcl` executable that can be configured in `.golangci.yaml`:
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.22
toolchain go1.23.0

require (
fillmore-labs.com/zerolint v0.0.3
fillmore-labs.com/zerolint v0.0.4
github.com/golangci/plugin-module-register v0.1.1
golang.org/x/tools v0.24.0
)
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
fillmore-labs.com/zerolint v0.0.3 h1:SLCJA66I4nMahf+uBbuhStDxV+P9bKZzI0ox+rkicnY=
fillmore-labs.com/zerolint v0.0.3/go.mod h1:uG/Zq5BdtVpPjYfo//pHAZdhtacBah4YMvpzNZz3nS8=
fillmore-labs.com/zerolint v0.0.4 h1:QkypV9GaDDgecOJr3q2bI0EhcKVeV54ngcgGaW0gM2I=
fillmore-labs.com/zerolint v0.0.4/go.mod h1:uzmGDOy06hHUUa6MTkthR8bdAocLhWdRw/f2HfYOegw=
github.com/golangci/plugin-module-register v0.1.1 h1:TCmesur25LnyJkpsVrupv1Cdzo+2f7zX0H6Jkw1Ol6c=
github.com/golangci/plugin-module-register v0.1.1/go.mod h1:TTpqoB6KkwOJMV8u7+NyXMrkwwESJLOkfl9TxR1DGFc=
golang.org/x/mod v0.20.0 h1:utOm6MM3R3dnawAiJgn0y+xvuYRsm1RKM/4giyfDgV0=
Expand Down
8 changes: 7 additions & 1 deletion plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,13 @@ func (p Plugin) BuildAnalyzers() ([]*analysis.Analyzer, error) {
excludes[ex] = struct{}{}
}

v := visitor.Visitor{Pass: pass, Excludes: excludes, Basic: p.settings.Basic}
v := visitor.Run{
Visitor: visitor.Visitor{
Pass: pass,
Excludes: excludes,
},
Basic: p.settings.Basic,
}
v.Run()

return any(nil), nil
Expand Down

0 comments on commit f2323d6

Please sign in to comment.