File tree 4 files changed +18
-25
lines changed
4 files changed +18
-25
lines changed Original file line number Diff line number Diff line change @@ -40,12 +40,11 @@ jobs:
40
40
CGO_ENABLED : 1
41
41
42
42
- name : golangci-lint
43
- uses : golangci/golangci-lint-action@v6
43
+ uses : golangci/golangci-lint-action@v7
44
44
with :
45
- version : v1.59 .1
45
+ version : v2.1 .1
46
46
# The installation mode `goinstall` always uses `CGO_ENABLED=1`.
47
47
install-mode : goinstall
48
- args : --timeout=10m
49
48
50
49
- name : Test
51
50
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"
14
2
15
3
linters :
16
- disable-all : true
4
+ default : none
17
5
enable :
18
6
- 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
20
17
21
18
issues :
22
- exclude-use-default : false
23
- max-per-linter : 0
19
+ max-issues-per-linter : 0
24
20
max-same-issues : 0
25
-
Original file line number Diff line number Diff line change 1
1
module github.com/golangci/golangci-lint-action-plugin-example
2
2
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
19
19
20
20
` ` ` yml
21
21
- name : golangci-lint
22
- uses : golangci/golangci-lint-action@v3
22
+ uses : golangci/golangci-lint-action@v7
23
23
with :
24
- version : v1.53.2
24
+ version : v2.1.1
25
25
# The installation mode `goinstall` always uses `CGO_ENABLED=1`.
26
26
install-mode : goinstall
27
- args : --timeout=5m
28
27
` ` `
29
28
30
29
## Full Example
You can’t perform that action at this time.
0 commit comments