✨ Linter to CI #17
2 changed files with 36 additions and 0 deletions
25
.golangci.yaml
Normal file
25
.golangci.yaml
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
linters:
|
||||||
|
enable-all: true
|
||||||
|
disable:
|
||||||
|
# Deprecated
|
||||||
|
- varcheck
|
||||||
|
- ifshort
|
||||||
|
- interfacer
|
||||||
|
- maligned
|
||||||
|
- deadcode
|
||||||
|
- scopelint
|
||||||
|
- golint
|
||||||
|
- structcheck
|
||||||
|
- exhaustivestruct
|
||||||
|
- nosnakecase
|
||||||
|
# Too extremist/unusable
|
||||||
|
- depguard
|
||||||
|
- varnamelen
|
||||||
|
- exhaustruct
|
||||||
|
- wsl
|
||||||
|
- contextcheck
|
||||||
|
- wrapcheck
|
||||||
|
linters-settings:
|
||||||
|
lll:
|
||||||
|
# Too short byt default
|
||||||
|
line-length: 160
|
11
.woodpecker/lint.yml
Normal file
11
.woodpecker/lint.yml
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
steps:
|
||||||
|
lint:
|
||||||
|
image: golang:1.22
|
||||||
|
commands:
|
||||||
|
- go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
|
||||||
|
- golangci-lint run
|
||||||
|
when:
|
||||||
|
- event: pull_request
|
||||||
|
repo: gnouseu/plakken
|
||||||
|
- event: push
|
||||||
|
branch: main
|
Loading…
Reference in a new issue