[ci] Add forbidigo to golangci-lint (#160)

* Move setup into config file
* Add forbidigo to default linters

Signed-off-by: Julian Strobl <jmastr@mailbox.org>
This commit is contained in:
Julian Strobl 2023-10-20 13:31:16 +02:00 committed by GitHub
parent 45504f4670
commit bed03197b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 1 deletions

View File

@ -56,7 +56,7 @@ jobs:
run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
- name: Run golangci-lint
run: golangci-lint run --timeout 5m
run: golangci-lint run
- name: Run tests
run: go test -race -vet=off ./...

12
.golangci.yaml Normal file
View File

@ -0,0 +1,12 @@
---
run:
timeout: 5m
linters:
enable:
- errcheck
- forbidigo
- gosimple
- govet
- ineffassign
- staticcheck
- unused