Browse Source

Remove old lint targets

pull/1603/head
Mark Sagi-Kazar 6 years ago
parent
commit
bcd47fc6f3
No known key found for this signature in database
GPG Key ID: 34CC109EB5ED1C2A
  1. 17
      Makefile
  2. 7
      scripts/gofmt

17
Makefile

@ -2,7 +2,6 @@ PROJ=dex
ORG_PATH=github.com/dexidp
REPO_PATH=$(ORG_PATH)/$(PROJ)
export PATH := $(PWD)/bin:$(PATH)
THIS_DIRECTORY:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
VERSION ?= $(shell ./scripts/git-version)
@ -62,15 +61,6 @@ lint: bin/golangci-lint ## Run linter
fix: bin/golangci-lint ## Fix lint violations
bin/golangci-lint run --fix
vet:
@go vet ./...
fmt:
@./scripts/gofmt ./...
oldlint: bin/golint
@./bin/golint -set_exit_status $(shell go list ./...)
.PHONY: docker-image
docker-image:
@sudo docker build -t $(DOCKER_IMAGE) .
@ -90,14 +80,11 @@ bin/protoc: scripts/get-protoc
bin/protoc-gen-go:
@go install -v $(REPO_PATH)/vendor/github.com/golang/protobuf/protoc-gen-go
bin/golint:
@go install -v $(THIS_DIRECTORY)/vendor/golang.org/x/lint/golint
clean:
@rm -rf bin/
testall: testrace vet fmt oldlint
testall: testrace
FORCE:
.PHONY: test testrace vet fmt oldlint testall
.PHONY: test testrace testall

7
scripts/gofmt

@ -1,7 +0,0 @@
#!/bin/bash -e
result=$( go fmt $@ )
if [[ $result != "" ]]; then
>&2 echo "The following files are not formatted correctly: $result"
exit 1
fi
Loading…
Cancel
Save