mirror of
https://github.com/rclone/rclone
synced 2024-11-13 12:09:47 +01:00
Add goimports check to make check
This commit is contained in:
parent
d42cb11b84
commit
ef54167a4a
2
Makefile
2
Makefile
@ -1,3 +1,4 @@
|
|||||||
|
SHELL = /bin/bash
|
||||||
TAG := $(shell git describe --tags)
|
TAG := $(shell git describe --tags)
|
||||||
LAST_TAG := $(shell git describe --tags --abbrev=0)
|
LAST_TAG := $(shell git describe --tags --abbrev=0)
|
||||||
NEW_TAG := $(shell echo $(LAST_TAG) | perl -lpe 's/v//; $$_ += 0.01; $$_ = sprintf("v%.2f", $$_)')
|
NEW_TAG := $(shell echo $(LAST_TAG) | perl -lpe 's/v//; $$_ += 0.01; $$_ = sprintf("v%.2f", $$_)')
|
||||||
@ -14,6 +15,7 @@ check: rclone
|
|||||||
go vet ./...
|
go vet ./...
|
||||||
errcheck ./...
|
errcheck ./...
|
||||||
golint ./...
|
golint ./...
|
||||||
|
diff <(goimports -d .) <(printf "")
|
||||||
|
|
||||||
doc: rclone.1 MANUAL.html MANUAL.txt
|
doc: rclone.1 MANUAL.html MANUAL.txt
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user