mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-06-06 06:06:43 +00:00
[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:
parent
45504f4670
commit
bed03197b5
2
.github/workflows/audit.yaml
vendored
2
.github/workflows/audit.yaml
vendored
@ -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
12
.golangci.yaml
Normal file
@ -0,0 +1,12 @@
|
||||
---
|
||||
run:
|
||||
timeout: 5m
|
||||
linters:
|
||||
enable:
|
||||
- errcheck
|
||||
- forbidigo
|
||||
- gosimple
|
||||
- govet
|
||||
- ineffassign
|
||||
- staticcheck
|
||||
- unused
|
Loading…
x
Reference in New Issue
Block a user