Linter to CI
Some checks failed
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/release Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/push/lint Pipeline failed
ci/woodpecker/pr/release Pipeline was successful
ci/woodpecker/pr/lint Pipeline failed

This commit is contained in:
Ada 2023-12-28 22:59:48 +01:00
parent d2262fcced
commit 7d5f248d82
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