Skip to content

Commit 0095fb2

Browse files
authored
Merge pull request #584 from onflow/improvement/lint-gha
Update linter
2 parents 3956e77 + e954f39 commit 0095fb2

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ jobs:
3939
runs-on: ubuntu-latest
4040
steps:
4141
- uses: actions/checkout@v2
42+
- uses: actions/setup-go@v1
43+
with:
44+
go-version: '1.18'
4245
- uses: golangci/[email protected]
4346
with:
44-
version: v1.29.0
47+
version: v1.47.2
4548
args: --timeout=3m

.golangci.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,12 @@ linters:
22
disable-all: true
33
enable:
44
- govet
5-
- gosimple
65
- errcheck
7-
- staticcheck
8-
- structcheck
96
- varcheck
107
- ineffassign
118
- typecheck
129
- misspell
1310
- goimports
14-
- unused
1511
linters-settings:
1612
goimports:
1713
# put imports beginning with prefix after 3rd-party package

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ clean:
8888

8989
.PHONY: install-linter
9090
install-linter:
91-
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b ${GOPATH}/bin v1.29.0
91+
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b ${GOPATH}/bin v1.47.2
9292

9393
.PHONY: lint
9494
lint:

0 commit comments

Comments
 (0)