From e307c8706fb9c6a81c00f31541420727cb5a40f2 Mon Sep 17 00:00:00 2001 From: Anjan Nath Date: Sat, 21 May 2022 12:59:51 +0530 Subject: add 'lint' target to Makefile to quickly run the linter while developing here we assume gosec is already available in the dev machine, gofmt and govet are part of the go-sdk --- Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Makefile b/Makefile index 3552bc0..71c6826 100644 --- a/Makefile +++ b/Makefile @@ -17,3 +17,15 @@ run-openvpn: check: curl https://wtfismyip.com/json + +.PHONY: lint +lint: go-fmt go-vet go-sec + +go-fmt: + gofmt -s -l . + +go-vet: + go vet ./... + +go-sec: + gosec ./... -- cgit v1.2.3