Files
woodpecker-go-plugin-template/.golangci.yaml
T

70 lines
1.3 KiB
YAML

version: "2"
linters:
default: none
enable:
- bidichk
- errcheck
- errorlint
- forbidigo
- govet
- ineffassign
- misspell
- revive
- staticcheck
- unused
- whitespace
- zerologlint
settings:
errorlint:
errorf-multi: true
forbidigo:
forbid:
- pattern: context\.WithCancel$
- pattern: ^print.*$
misspell:
locale: US
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
paths:
- third_party$
- builtin$
- examples$
revive:
rules:
- name: var-naming
arguments:
- []
- []
- - skipPackageNameChecks: true
skip-package-name-collision-with-go-std: true
formatters:
enable:
- gci
- gofmt
- gofumpt
settings:
gci:
sections:
- standard
- default
- prefix(go.woodpecker-ci.org/woodpecker)
custom-order: true
gofmt:
simplify: true
rewrite-rules:
- pattern: interface{}
replacement: any
gofumpt:
extra-rules: true
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$