mirror of
https://codeberg.org/woodpecker-plugins/go-plugin
synced 2026-06-04 18:23:54 +08:00
a811e40032
Reviewed-on: https://codeberg.org/woodpecker-plugins/go-plugin/pulls/78 Co-authored-by: woodpecker-bot <woodpecker-bot@obermui.de> Co-committed-by: woodpecker-bot <woodpecker-bot@obermui.de>
70 lines
1.3 KiB
YAML
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$
|