all: lint build test

build:
	go build ./...

install:
	go get github.com/alecthomas/gometalinter
	gometalinter --install

lint:
	gometalinter --config='.gometalinter.json' ./...
	find . -name '*.go' | xargs gofmt -w -s

test: 
	 go test -cover ./check ./handlers

start:
	 go run main.go

start-dev:
	go run main.go -http 127.0.0.1:8000 -dev

misspell:
	find . -name '*.go' -not -path './vendor/*' -not -path './_repos/*' | xargs misspell -error
