Skip to content

Commit

Permalink
chore(makefile): install golangci-lint with go install (ChainSafe#2053)
Browse files Browse the repository at this point in the history
  • Loading branch information
qdm12 authored and timwu20 committed Dec 6, 2021
1 parent bc7e9da commit a56dfc6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
7 changes: 3 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@ help: Makefile
@sed -n 's/^##//p' $< | column -t -s ':' | sed -e 's/^/ /'
@echo

## lint: Lints project files, go gets golangci-lint if missing. Runs `golangci-lint` on project files.
.PHONY: lint
lint:
./scripts/install-lint.sh
${GOPATH}/bin/golangci-lint run
lint:
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.43.0
golangci-lint run

clean:
rm -fr ./bin
Expand Down
12 changes: 0 additions & 12 deletions scripts/install-lint.sh

This file was deleted.

0 comments on commit a56dfc6

Please sign in to comment.