File tree Expand file tree Collapse file tree 4 files changed +18
-25
lines changed Expand file tree Collapse file tree 4 files changed +18
-25
lines changed Original file line number Diff line number Diff line change @@ -40,12 +40,11 @@ jobs:
4040 CGO_ENABLED : 1
4141
4242 - name : golangci-lint
43- uses : golangci/golangci-lint-action@v6
43+ uses : golangci/golangci-lint-action@v7
4444 with :
45- version : v1.59 .1
45+ version : v2.1 .1
4646 # The installation mode `goinstall` always uses `CGO_ENABLED=1`.
4747 install-mode : goinstall
48- args : --timeout=10m
4948
5049 - name : Test
5150 run : go test -v -cover ./...
Original file line number Diff line number Diff line change 1- run :
2- timeout : 10m
3- skip-files : []
4-
5- linters-settings :
6- custom :
7- example :
8- # Path to the `.so` file of the plugin
9- path : .plugins/example.so
10- # Only used for documentation purposes.
11- description : The description of the linter. Shows up when running `golangci-lint linters`.
12- # Only used for documentation purposes.
13- original-url : github.com/golangci/example-linter
1+ version : " 2"
142
153linters :
16- disable-all : true
4+ default : none
175 enable :
186 - example
19- - typecheck
7+
8+ settings :
9+ custom :
10+ example :
11+ # Path to the `.so` file of the plugin
12+ path : .plugins/example.so
13+ # Only used for documentation purposes.
14+ description : The description of the linter. Shows up when running `golangci-lint linters`.
15+ # Only used for documentation purposes.
16+ original-url : github.com/golangci/example-linter
2017
2118issues :
22- exclude-use-default : false
23- max-per-linter : 0
19+ max-issues-per-linter : 0
2420 max-same-issues : 0
25-
Original file line number Diff line number Diff line change 11module github.com/golangci/golangci-lint-action-plugin-example
22
3- go 1.20
3+ go 1.23.0
Original file line number Diff line number Diff line change @@ -19,12 +19,11 @@ This repository is an example to explain how to use [custom linters](https://gol
1919
2020` ` ` yml
2121 - name : golangci-lint
22- uses : golangci/golangci-lint-action@v3
22+ uses : golangci/golangci-lint-action@v7
2323 with :
24- version : v1.53.2
24+ version : v2.1.1
2525 # The installation mode `goinstall` always uses `CGO_ENABLED=1`.
2626 install-mode : goinstall
27- args : --timeout=5m
2827` ` `
2928
3029## Full Example
You can’t perform that action at this time.
0 commit comments