Linter to CI

This commit is contained in:
Ada 2023-12-28 22:59:48 +01:00
parent b7be167dd7
commit 9e15f29efb
Signed by: ada
GPG key ID: 6A7F898157C6DE6E
2 changed files with 21 additions and 0 deletions

16
.golangci.yaml Normal file
View file

@ -0,0 +1,16 @@
linters:
enable-all: true
disable:
# Deprecated
- varcheck
- ifshort
- interfacer
- maligned
- deadcode
- scopelint
- golint
- structcheck
- exhaustivestruct
- nosnakecase
# To extremist
- depguard

5
.woodpecker/lint.yml Normal file
View file

@ -0,0 +1,5 @@
steps:
lint:
image: golangci/golangci-lint
commands:
- golangci-lint run