From bb8e61c7c5d9f297bde207c6de07a5d4b67dcd29 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Mon, 27 Nov 2017 21:30:04 -0800 Subject: Make sure golint pass on the code base --- Makefile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 61ec8c2..0b4be22 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,10 @@ -APP = miniflux -VERSION = $(shell git rev-parse --short HEAD) -BUILD_DATE = `date +%FT%T%z` -DB_URL = postgres://postgres:postgres@localhost/miniflux_test?sslmode=disable +APP := miniflux +VERSION := $(shell git rev-parse --short HEAD) +BUILD_DATE := `date +%FT%T%z` +PKG_LIST := $(shell go list ./... | grep -v /vendor/) +DB_URL := postgres://postgres:postgres@localhost/miniflux_test?sslmode=disable -.PHONY: build-linux build-darwin build run clean test integration-test clean-integration-test +.PHONY: build-linux build-darwin build run clean test lint integration-test clean-integration-test build-linux: @ go generate @@ -25,6 +26,9 @@ clean: test: go test -cover -race ./... +lint: + @ golint -set_exit_status ${PKG_LIST} + integration-test: psql -U postgres -c 'drop database if exists miniflux_test;' psql -U postgres -c 'create database miniflux_test;' -- cgit v1.2.3