Remove old lint targets

This commit is contained in:
Mark Sagi-Kazar 2019-12-18 15:07:53 +01:00
parent 9346e328ef
commit bcd47fc6f3
No known key found for this signature in database
GPG key ID: 34CC109EB5ED1C2A
2 changed files with 2 additions and 22 deletions

View file

@ -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

View file

@ -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