From 9629df54b282de6084c1801fee1402220011c939 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Sun, 27 Mar 2022 19:40:18 +0200 Subject: [PATCH] add golangci-lint --- .woodpecker.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 0f3d9ca..ff49faa 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -6,11 +6,12 @@ pipeline: - go mod vendor lint: - image: golang + image: golangci/golangci-lint:v1.45.2 commands: + - go version - go install mvdan.cc/gofumpt@latest - "[ $(gofumpt -extra -l . | wc -l) != 0 ] && { echo 'code not formated'; exit 1; }" - - go vet + - golangci-lint run -v # # TODO: make tests work # test: