Skip to content
This repository has been archived by the owner on Jan 14, 2022. It is now read-only.

Commit

Permalink
fix: re-enable golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Jun 13, 2019
1 parent 65ef6f9 commit b789d45
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Makefile
Expand Up @@ -10,9 +10,7 @@ setup: ## Install all the build and lint dependencies
mkdir -p bin
curl -sfL https://install.goreleaser.com/github.com/goreleaser/goreleaser.sh | sh
curl -sfL https://install.goreleaser.com/github.com/gohugoio/hugo.sh | sh
# FIXME golangci-lint.sh is currently broken, restore installation with curl when it is fixed
# curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh
( cd $$(mktemp -d) && go mod init tmp && go get github.com/golangci/golangci-lint/cmd/golangci-lint@v1.17.1 )
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh
ifeq ($(OS), Darwin)
curl -sfL -o ./bin/shellcheck https://github.com/caarlos0/shellcheck-docker/releases/download/v0.4.6/shellcheck_darwin
else
Expand All @@ -35,8 +33,7 @@ fmt: ## gofmt and goimports all go files
find . -name '*.go' -not -wholename './vendor/*' | while read -r file; do gofmt -w -s "$$file"; goimports -w "$$file"; done

lint: ## Run all the linters
# ./bin/golangci-lint run --enable-all ./...
echo nope
./bin/golangci-lint run --enable-all ./...

precommit: lint ## Run precommit hook

Expand Down

0 comments on commit b789d45

Please sign in to comment.