Skip to content

Commit a97066f

Browse files
committed
Merge branch 'origin/master' into to-string
2 parents 6765cc6 + 9e0997e commit a97066f

File tree

3 files changed

+32
-12
lines changed

3 files changed

+32
-12
lines changed

.github/workflows/go.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@ jobs:
99
name: Verify
1010
runs-on: ubuntu-latest
1111
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
1414
with:
15-
go-version: 1.19
15+
go-version: 1.21
1616

1717
- name: Check out code into the Go module directory
18-
uses: actions/checkout@v2
18+
uses: actions/checkout@v4
1919

2020
- name: Lint
21-
uses: golangci/golangci-lint-action@v3
21+
uses: golangci/golangci-lint-action@v6
2222
with:
23-
version: v1.49
23+
version: v1.59
2424

2525
- name: Test
2626
run: go test -v ./...

.golangci.yml

+25-5
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,47 @@ run:
44
linters:
55
disable-all: true
66
enable:
7-
- deadcode
87
- errcheck
98
- gofmt
109
- goimports
11-
- golint
1210
- govet
1311
- ineffassign
1412
- misspell
13+
- revive
1514
- typecheck
1615
- unconvert
17-
- varcheck
16+
- unused
1817

1918
issues:
2019
exclude-use-default: false
2120

2221
linters-settings:
23-
goimports:
24-
local-prefixes: github.com/bluekeyes/go-gitdiff
2522
errcheck:
2623
exclude-functions:
2724
- (*github.com/bluekeyes/go-gitdiff/gitdiff.formatter).Write
2825
- (*github.com/bluekeyes/go-gitdiff/gitdiff.formatter).WriteString
2926
- (*github.com/bluekeyes/go-gitdiff/gitdiff.formatter).WriteByte
3027
- 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

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module github.com/bluekeyes/go-gitdiff
22

3-
go 1.20
3+
go 1.21

0 commit comments

Comments
 (0)