Fixed lint command

main
Jef Roosens 2022-01-13 14:33:06 +01:00
parent 6b1e81a2fd
commit c8833f06ce
Signed by untrusted user: Jef Roosens
GPG Key ID: 955C0660072F691F
2 changed files with 6 additions and 2 deletions

View File

@ -2,4 +2,4 @@ pipeline:
lint: lint:
image: 'chewingbever/vlang:latest' image: 'chewingbever/vlang:latest'
commands: commands:
- make fmt - make lint

View File

@ -51,10 +51,14 @@ watch:
# =====OTHER===== # =====OTHER=====
.PHONY: lint
lint:
$(V) fmt -verify $(SRC_DIR)
# Format the V codebase # Format the V codebase
.PHONY: fmt .PHONY: fmt
fmt: fmt:
v fmt -w $(SRC_DIR) $(V) fmt -w $(SRC_DIR)
# Pulls & builds my personal build of the v compiler, required for this project to function # Pulls & builds my personal build of the v compiler, required for this project to function
.PHONY: customv .PHONY: customv