mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-27 06:03:51 +03:00
Added errcheck make task (#242)
This commit is contained in:
parent
c0ca6644ad
commit
900a21008c
1 changed files with 7 additions and 0 deletions
7
Makefile
7
Makefile
|
@ -51,6 +51,13 @@ fmt:
|
|||
vet:
|
||||
go vet $(PACKAGES)
|
||||
|
||||
.PHONY: errcheck
|
||||
errcheck:
|
||||
@which errcheck > /dev/null; if [ $$? -ne 0 ]; then \
|
||||
go get -u github.com/kisielk/errcheck; \
|
||||
fi
|
||||
errcheck $(PACKAGES)
|
||||
|
||||
.PHONY: lint
|
||||
lint:
|
||||
@which golint > /dev/null; if [ $$? -ne 0 ]; then \
|
||||
|
|
Loading…
Reference in a new issue