Skip to content

Commit ac2b9af

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

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

.golangci.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ linters-settings:
1010
type: "module"
1111
settings:
1212
excluded: []
13+
basic: true

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Add a file `.custom-gcl.yaml` to your source with
1313
version: v1.59.1
1414
plugins:
1515
- module: fillmore-labs.com/zerolint-golangci-plugin
16-
version: v0.0.1
16+
version: v0.0.2
1717
```
1818
1919
then run `golangci-lint custom`. You get an `custom-gcl` executable that can be configured in `.golangci.yaml`:
@@ -28,6 +28,7 @@ linters-settings:
2828
zerolint:
2929
type: "module"
3030
settings:
31+
basic: false
3132
excluded: []
3233
```
3334

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.21
55
toolchain go1.22.5
66

77
require (
8-
fillmore-labs.com/zerolint v0.0.1
8+
fillmore-labs.com/zerolint v0.0.2
99
github.com/golangci/plugin-module-register v0.1.1
1010
golang.org/x/tools v0.23.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.1 h1:L9ON5l0fJfASINhtIt4xngwcStsp1zqFtO4nCtOCIpY=
2-
fillmore-labs.com/zerolint v0.0.1/go.mod h1:HT5XckGjAEW+twhXtryNQzphPzHjCw5ccFZUqel3Kis=
1+
fillmore-labs.com/zerolint v0.0.2 h1:Wgg5K92ENelyg6GqybOLdj4kn3fsXtQAPyNxOmcO//M=
2+
fillmore-labs.com/zerolint v0.0.2/go.mod h1:HT5XckGjAEW+twhXtryNQzphPzHjCw5ccFZUqel3Kis=
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.19.0 h1:fEdghXQSo20giMthA7cd28ZC+jts4amQ3YMXiP5oMQ8=

plugin.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ func init() { //nolint:gochecknoinits
1616

1717
type Settings struct {
1818
Excluded []string `json:"excluded"`
19+
Basic bool `json:"basic"`
1920
}
2021

2122
func New(settings any) (register.LinterPlugin, error) { //nolint:ireturn
@@ -38,7 +39,7 @@ func (p Plugin) BuildAnalyzers() ([]*analysis.Analyzer, error) {
3839
excludes[ex] = struct{}{}
3940
}
4041

41-
v := visitor.Visitor{Pass: pass, Excludes: excludes}
42+
v := visitor.Visitor{Pass: pass, Excludes: excludes, Basic: p.settings.Basic}
4243
v.Run()
4344

4445
return any(nil), nil

0 commit comments

Comments
 (0)