Skip to content

Commit

Permalink
Merge pull request #584 from onflow/improvement/lint-gha
Browse files Browse the repository at this point in the history
Update linter
  • Loading branch information
sideninja authored Jul 27, 2022
2 parents 3956e77 + e954f39 commit 0095fb2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v1
with:
go-version: '1.18'
- uses: golangci/[email protected]
with:
version: v1.29.0
version: v1.47.2
args: --timeout=3m
4 changes: 0 additions & 4 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,12 @@ linters:
disable-all: true
enable:
- govet
- gosimple
- errcheck
- staticcheck
- structcheck
- varcheck
- ineffassign
- typecheck
- misspell
- goimports
- unused
linters-settings:
goimports:
# put imports beginning with prefix after 3rd-party package
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ clean:

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

.PHONY: lint
lint:
Expand Down

0 comments on commit 0095fb2

Please sign in to comment.