chore(ci): added missdoc -p check; merged lint commands

cron
Jef Roosens 2022-04-30 16:41:12 +02:00
parent caee56efd4
commit 98c0e52b08
Signed by untrusted user: Jef Roosens
GPG Key ID: B75D4F293C7052DB
2 changed files with 3 additions and 6 deletions

View File

@ -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

View File

@ -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)