Added lint
This commit is contained in:
parent
99b486c73f
commit
2aca6e87dc
|
@ -16,6 +16,7 @@ steps:
|
|||
image: vikunja/golang-build:latest
|
||||
pull: true
|
||||
commands:
|
||||
- make lint
|
||||
- make build
|
||||
when:
|
||||
event: [ push, tag, pull_request ]
|
||||
|
|
7
Makefile
7
Makefile
|
@ -123,3 +123,10 @@ release-copy:
|
|||
.PHONY: release-check
|
||||
release-check:
|
||||
cd $(DIST)/release; $(foreach file,$(wildcard $(DIST)/release/$(EXECUTABLE)-*),sha256sum $(notdir $(file)) > $(notdir $(file)).sha256;)
|
||||
|
||||
.PHONY: lint
|
||||
lint:
|
||||
@hash golint > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
|
||||
go install $(GOFLAGS) golang.org/x/lint/golint; \
|
||||
fi
|
||||
for PKG in $(PACKAGES); do golint -set_exit_status $$PKG || exit 1; done;
|
||||
|
|
Loading…
Reference in New Issue