File tree Expand file tree Collapse file tree 14 files changed +42
-14
lines changed Expand file tree Collapse file tree 14 files changed +42
-14
lines changed Original file line number Diff line number Diff line change 1515 - uses : actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
1616 with :
1717 go-version : ${{ steps.goversion.outputs.goversion }}
18+ - name : Run golangci-lint
19+ uses : golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
20+ with :
21+ version : v2.1.6
1822 - run : |
1923 make gofail-enable
2024 make test-failpoint
Original file line number Diff line number Diff line change 2929 - uses : actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
3030 with :
3131 go-version : ${{ steps.goversion.outputs.goversion }}
32+ - name : Run golangci-lint
33+ uses : golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
34+ with :
35+ version : v2.1.6
3236 - name : test-robustness
3337 run : |
3438 set -euo pipefail
Original file line number Diff line number Diff line change 4949 exit 1
5050 ;;
5151 esac
52- - name : golangci-lint
52+ - name : Run golangci-lint
5353 uses : golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
5454 with :
5555 version : v2.1.6
Original file line number Diff line number Diff line change 2323 - uses : actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
2424 with :
2525 go-version : ${{ steps.goversion.outputs.goversion }}
26+ - name : Run golangci-lint
27+ uses : golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
28+ with :
29+ version : v2.1.6
2630 - run : make coverage
Original file line number Diff line number Diff line change 2525 - uses : actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
2626 with :
2727 go-version : ${{ steps.goversion.outputs.goversion }}
28+ - name : Run golangci-lint
29+ uses : golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
30+ with :
31+ version : v2.1.6
2832 - run : make coverage
Original file line number Diff line number Diff line change 3939 ;;
4040 esac
4141 shell : bash
42- - name : golangci-lint
42+ - name : Run golangci-lint
4343 uses : golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
4444 with :
4545 version : v2.1.6
5454 - uses : actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
5555 with :
5656 go-version : ${{ steps.goversion.outputs.goversion }}
57+ - name : Run golangci-lint
58+ uses : golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
59+ with :
60+ version : v2.1.6
5761 - run : make coverage
Original file line number Diff line number Diff line change 11formatters :
22 enable :
3+ - gci
34 - gofmt
45 - goimports
56 settings : # please keep this alphabetized
7+ gci :
8+ sections :
9+ - standard
10+ - default
11+ - prefix(go.etcd.io)
612 goimports :
713 local-prefixes :
814 - go.etcd.io # Put imports beginning with prefix after 3rd-party packages.
Original file line number Diff line number Diff line change 88 "time"
99 "unsafe"
1010
11- "go.etcd.io/bbolt/internal/common"
1211 "golang.org/x/sys/unix"
12+
13+ "go.etcd.io/bbolt/internal/common"
1314)
1415
1516// flock acquires an advisory lock on a file descriptor.
Original file line number Diff line number Diff line change 66 "time"
77 "unsafe"
88
9- "go.etcd.io/bbolt/internal/common"
109 "golang.org/x/sys/unix"
10+
11+ "go.etcd.io/bbolt/internal/common"
1112)
1213
1314// flock acquires an advisory lock on a file descriptor.
Original file line number Diff line number Diff line change 66 "time"
77 "unsafe"
88
9- "go.etcd.io/bbolt/internal/common"
109 "golang.org/x/sys/unix"
10+
11+ "go.etcd.io/bbolt/internal/common"
1112)
1213
1314// flock acquires an advisory lock on a file descriptor.
You can’t perform that action at this time.
0 commit comments