File tree 3 files changed +32
-12
lines changed
3 files changed +32
-12
lines changed Original file line number Diff line number Diff line change 9
9
name : Verify
10
10
runs-on : ubuntu-latest
11
11
steps :
12
- - name : Set up Go 1.19
13
- uses : actions/setup-go@v3
12
+ - name : Set up Go 1.21
13
+ uses : actions/setup-go@v5
14
14
with :
15
- go-version : 1.19
15
+ go-version : 1.21
16
16
17
17
- name : Check out code into the Go module directory
18
- uses : actions/checkout@v2
18
+ uses : actions/checkout@v4
19
19
20
20
- name : Lint
21
- uses : golangci/golangci-lint-action@v3
21
+ uses : golangci/golangci-lint-action@v6
22
22
with :
23
- version : v1.49
23
+ version : v1.59
24
24
25
25
- name : Test
26
26
run : go test -v ./...
Original file line number Diff line number Diff line change 4
4
linters :
5
5
disable-all : true
6
6
enable :
7
- - deadcode
8
7
- errcheck
9
8
- gofmt
10
9
- goimports
11
- - golint
12
10
- govet
13
11
- ineffassign
14
12
- misspell
13
+ - revive
15
14
- typecheck
16
15
- unconvert
17
- - varcheck
16
+ - unused
18
17
19
18
issues :
20
19
exclude-use-default : false
21
20
22
21
linters-settings :
23
- goimports :
24
- local-prefixes : github.com/bluekeyes/go-gitdiff
25
22
errcheck :
26
23
exclude-functions :
27
24
- (*github.com/bluekeyes/go-gitdiff/gitdiff.formatter).Write
28
25
- (*github.com/bluekeyes/go-gitdiff/gitdiff.formatter).WriteString
29
26
- (*github.com/bluekeyes/go-gitdiff/gitdiff.formatter).WriteByte
30
27
- fmt.Fprintf(*github.com/bluekeyes/go-gitdiff/gitdiff.formatter)
28
+ goimports :
29
+ local-prefixes : github.com/bluekeyes/go-gitdiff
30
+ revive :
31
+ rules :
32
+ # enable all rules from golint
33
+ - name : context-keys-type
34
+ - name : time-naming
35
+ - name : var-declaration
36
+ - name : unexported-return
37
+ - name : errorf
38
+ - name : blank-imports
39
+ - name : context-as-argument
40
+ - name : dot-imports
41
+ - name : error-return
42
+ - name : error-strings
43
+ - name : error-naming
44
+ - name : exported
45
+ - name : increment-decrement
46
+ - name : var-naming
47
+ - name : package-comments
48
+ - name : range
49
+ - name : receiver-naming
50
+ - name : indent-error-flow
Original file line number Diff line number Diff line change 1
1
module github.com/bluekeyes/go-gitdiff
2
2
3
- go 1.20
3
+ go 1.21
You can’t perform that action at this time.
0 commit comments