Skip to content

Commit be6d820

Browse files
committed
chore: update Go, CI, and linter
1 parent 415fa50 commit be6d820

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

Diff for: .github/workflows/ci.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,20 @@ jobs:
1313
runs-on: ubuntu-latest
1414
env:
1515
GO_VERSION: stable
16-
GOLANGCI_LINT_VERSION: v1.54.2
16+
GOLANGCI_LINT_VERSION: v1.56.2
1717
CGO_ENABLED: 0
1818

1919
steps:
2020

2121
# https://github.com/marketplace/actions/checkout
2222
- name: Check out code
23-
uses: actions/checkout@v3
23+
uses: actions/checkout@v4
2424
with:
2525
fetch-depth: 0
2626

2727
# https://github.com/marketplace/actions/setup-go-environment
2828
- name: Set up Go ${{ env.GO_VERSION }}
29-
uses: actions/setup-go@v4
29+
uses: actions/setup-go@v5
3030
with:
3131
go-version: ${{ env.GO_VERSION }}
3232

Diff for: .github/workflows/go-cross.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ jobs:
2323

2424
# https://github.com/marketplace/actions/checkout
2525
- name: Checkout code
26-
uses: actions/checkout@v3
26+
uses: actions/checkout@v4
2727

2828
# https://github.com/marketplace/actions/setup-go-environment
2929
- name: Set up Go ${{ matrix.go-version }}
30-
uses: actions/setup-go@v4
30+
uses: actions/setup-go@v5
3131
with:
3232
go-version: ${{ matrix.go-version }}
3333

Diff for: .golangci.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ run:
33

44
linters-settings:
55
govet:
6-
check-shadowing: true
76
enable-all: true
87
disable:
98
- fieldalignment
@@ -47,7 +46,6 @@ linters:
4746
- nestif
4847
- gomnd
4948
- goerr113
50-
# - wrapcheck
5149
- nlreturn
5250
- wsl
5351
- exhaustive
@@ -66,7 +64,7 @@ linters:
6664

6765
issues:
6866
exclude-use-default: false
69-
max-per-linter: 0
67+
max-issues-per-linter: 0
7068
max-same-issues: 0
7169
exclude:
7270
- 'ST1000: at least one file in a package should have a package comment'

Diff for: go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module github.com/golangci/revgrep
22

3-
go 1.19
3+
go 1.21

0 commit comments

Comments
 (0)