forked from vieter-v/vieter
chore(ci): added missdoc -p check; merged lint commands
parent
caee56efd4
commit
98c0e52b08
|
@ -7,7 +7,5 @@ pipeline:
|
||||||
lint:
|
lint:
|
||||||
image: 'chewingbever/vlang:latest'
|
image: 'chewingbever/vlang:latest'
|
||||||
pull: true
|
pull: true
|
||||||
group: lint
|
|
||||||
commands:
|
commands:
|
||||||
- make lint
|
- make lint
|
||||||
- make vet
|
|
||||||
|
|
7
Makefile
7
Makefile
|
@ -53,16 +53,15 @@ run-prod: prod
|
||||||
.PHONY: lint
|
.PHONY: lint
|
||||||
lint:
|
lint:
|
||||||
$(V) fmt -verify $(SRC_DIR)
|
$(V) fmt -verify $(SRC_DIR)
|
||||||
|
$(V) vet -W $(SRC_DIR)
|
||||||
|
$(V_PATH) missdoc -p $(SRC_DIR)
|
||||||
|
@ [ $$($(V_PATH) missdoc -p $(SRC_DIR) | wc -l) = 0 ]
|
||||||
|
|
||||||
# Format the V codebase
|
# Format the V codebase
|
||||||
.PHONY: fmt
|
.PHONY: fmt
|
||||||
fmt:
|
fmt:
|
||||||
$(V) fmt -w $(SRC_DIR)
|
$(V) fmt -w $(SRC_DIR)
|
||||||
|
|
||||||
.PHONY: vet
|
|
||||||
vet:
|
|
||||||
$(V) vet -W $(SRC_DIR)
|
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
test:
|
test:
|
||||||
$(V) test $(SRC_DIR)
|
$(V) test $(SRC_DIR)
|
||||||
|
|
Loading…
Reference in New Issue