✨ 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
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:
parent
d2262fcced
commit
7d5f248d82
2 changed files with 21 additions and 0 deletions
16
.golangci.yaml
Normal file
16
.golangci.yaml
Normal 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
5
.woodpecker/lint.yml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
steps:
|
||||||
|
lint:
|
||||||
|
image: golangci/golangci-lint
|
||||||
|
commands:
|
||||||
|
- golangci-lint run
|
Loading…
Reference in a new issue