summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 56bb1c1e..7c6bd54b 100644
--- a/Makefile
+++ b/Makefile
@@ -77,7 +77,6 @@ endif
all: target/$(BINARY)
test: $(SOURCES)
- [ -z "$$(gofmt -s -d src)" ] || (gofmt -s -d src; exit 1)
SHELL=/bin/sh GOOS= $(GO) test -v -tags "$(TAGS)" \
github.com/junegunn/fzf/src \
github.com/junegunn/fzf/src/algo \
@@ -87,6 +86,10 @@ test: $(SOURCES)
bench:
cd src && SHELL=/bin/sh GOOS= $(GO) test -v -tags "$(TAGS)" -run=Bench -bench=. -benchmem
+lint: $(SOURCES) test/test_go.rb
+ [ -z "$$(gofmt -s -d src)" ] || (gofmt -s -d src; exit 1)
+ rubocop --require rubocop-minitest --require rubocop-performance
+
install: bin/fzf
generate:
@@ -184,4 +187,4 @@ update:
$(GO) get -u
$(GO) mod tidy
-.PHONY: all generate build release test bench install clean docker docker-test update
+.PHONY: all generate build release test bench lint install clean docker docker-test update